mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 20:58:30 +01:00
TinyMce Image align left/right parsing fix.
This commit is contained in:
parent
1f69d7cd0a
commit
7e4f22c80d
@ -749,7 +749,7 @@ class e_bbcode
|
||||
$cls = array();
|
||||
foreach($tmp as $v)
|
||||
{
|
||||
if($v === 'img-rounded' || $v === 'rounded' || strpos($v,'bbcode') === 0 )
|
||||
if($v === 'img-rounded' || $v === 'rounded' || (strpos($v,'bbcode') === 0 && $v !== 'bbcode-img-right' && $v !== 'bbcode-img-left' ))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
@ -8,7 +8,7 @@
|
||||
*/
|
||||
|
||||
|
||||
if(empty($_POST['content']) && empty($_GET['debug']) && !defined('TINYMCE_DEBUG'))
|
||||
if(empty($_POST['content']) && empty($_GET['debug']) && !defined('TINYMCE_DEBUG') && !defined('TINYMCE_UNIT_TEST'))
|
||||
{
|
||||
header('Content-Length: 0');
|
||||
exit;
|
||||
@ -20,7 +20,7 @@ $_E107['no_forceuserupdate'] = true;
|
||||
$_E107['no_maintenance'] = true;
|
||||
|
||||
define('e_ADMIN_AREA', true);
|
||||
if(!defined('TINYMCE_DEBUG'))
|
||||
if(!defined('TINYMCE_DEBUG') && !defined('TINYMCE_UNIT_TEST'))
|
||||
{
|
||||
require_once("../../../../class2.php");
|
||||
}
|
||||
@ -44,7 +44,7 @@ class e107TinyMceParser
|
||||
{
|
||||
$html = '';
|
||||
|
||||
if(defined('TINYMCE_DEBUG'))
|
||||
if(defined('TINYMCE_DEBUG') || defined('TINYMCE_UNIT_TEST'))
|
||||
{
|
||||
$this->gzipCompression = false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user