mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
Video thumbnail fix. Use bootstrap css as default on Tinymce tables.
This commit is contained in:
@@ -3004,9 +3004,10 @@ class e_parser
|
||||
|
||||
if($type == 'youtube')
|
||||
{
|
||||
// $thumbSrc = "https://i1.ytimg.com/vi/".$id."/0.jpg";
|
||||
$thumbSrc = "http://i1.ytimg.com/vi/".$id."/mqdefault.jpg";
|
||||
$video = '<iframe width="560" height="315" src="//www.youtube.com/embed/'.$id.'?'.$ytqry.'" style="background-size: 100%;background-image: url('.$thumbSrc.');border:0px" allowfullscreen></iframe>';
|
||||
|
||||
$video = '<iframe width="560" height="315" src="//www.youtube.com/embed/'.$id.'?'.$ytqry.'" style="border:0px" allowfullscreen></iframe>';
|
||||
$thumbSrc = "https://i1.ytimg.com/vi/".$id."/0.jpg";
|
||||
|
||||
if($thumb == 'tag')
|
||||
{
|
||||
|
@@ -4,7 +4,8 @@
|
||||
insertdatetime media nonbreaking save table contextmenu directionality emoticons template paste textcolor</plugins>
|
||||
<menubar>edit view format insert table tools</menubar>
|
||||
<toolbar1>undo redo | styleselect | bold italic forecolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | e107-image e107-video e107-glyph | preview</toolbar1>
|
||||
<external_plugins>e107 example</external_plugins>
|
||||
<external_plugins>e107 example compat3x</external_plugins>
|
||||
<image_advtab>true</image_advtab>
|
||||
<extended_valid_elements>i[*], object[*],embed[*],bbcode[*]</extended_valid_elements>
|
||||
<table_default_attributes>{ class: 'table table-striped table-bordered' }</table_default_attributes>
|
||||
</tinymce>
|
||||
|
@@ -19,5 +19,6 @@
|
||||
description: "Adds an example."
|
||||
}
|
||||
]
|
||||
</templates>
|
||||
</templates>
|
||||
<table_default_attributes>{ class: 'table table-striped table-bordered' }</table_default_attributes>
|
||||
</tinymce>
|
||||
|
@@ -234,6 +234,11 @@ class wysiwyg
|
||||
function convertBoolean($string)
|
||||
{
|
||||
|
||||
if(substr($string,0,1) == '{')
|
||||
{
|
||||
return $string;
|
||||
}
|
||||
|
||||
if(is_string($string))
|
||||
{
|
||||
$string = trim($string);
|
||||
@@ -320,6 +325,9 @@ class wysiwyg
|
||||
$ret['preformatted'] = true;
|
||||
$ret['document_base_url'] = SITEURL;
|
||||
|
||||
// $ret['table_default_attributes'] = json_encode(array('class'=>'table table-striped' ));
|
||||
|
||||
|
||||
if(!empty($ret['templates']))
|
||||
{
|
||||
$ret['templates'] = $tp->replaceConstants($ret['templates'],'abs'); // $this->getTemplates();
|
||||
|
Reference in New Issue
Block a user