mirror of
https://github.com/e107inc/e107.git
synced 2025-08-30 01:30:32 +02:00
Video thumbnail fix. Use bootstrap css as default on Tinymce tables.
This commit is contained in:
@@ -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>
|
||||
|
@@ -233,6 +233,11 @@ class wysiwyg
|
||||
|
||||
function convertBoolean($string)
|
||||
{
|
||||
|
||||
if(substr($string,0,1) == '{')
|
||||
{
|
||||
return $string;
|
||||
}
|
||||
|
||||
if(is_string($string))
|
||||
{
|
||||
@@ -319,6 +324,9 @@ class wysiwyg
|
||||
$ret['relative_urls'] = false; //Media Manager prefers it like this.
|
||||
$ret['preformatted'] = true;
|
||||
$ret['document_base_url'] = SITEURL;
|
||||
|
||||
// $ret['table_default_attributes'] = json_encode(array('class'=>'table table-striped' ));
|
||||
|
||||
|
||||
if(!empty($ret['templates']))
|
||||
{
|
||||
|
Reference in New Issue
Block a user