mirror of
https://github.com/e107inc/e107.git
synced 2025-07-29 10:50:25 +02:00
TinyMce Image align left/right parsing fix.
This commit is contained in:
@@ -749,7 +749,7 @@ class e_bbcode
|
|||||||
$cls = array();
|
$cls = array();
|
||||||
foreach($tmp as $v)
|
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;
|
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');
|
header('Content-Length: 0');
|
||||||
exit;
|
exit;
|
||||||
@@ -20,7 +20,7 @@ $_E107['no_forceuserupdate'] = true;
|
|||||||
$_E107['no_maintenance'] = true;
|
$_E107['no_maintenance'] = true;
|
||||||
|
|
||||||
define('e_ADMIN_AREA', true);
|
define('e_ADMIN_AREA', true);
|
||||||
if(!defined('TINYMCE_DEBUG'))
|
if(!defined('TINYMCE_DEBUG') && !defined('TINYMCE_UNIT_TEST'))
|
||||||
{
|
{
|
||||||
require_once("../../../../class2.php");
|
require_once("../../../../class2.php");
|
||||||
}
|
}
|
||||||
@@ -44,7 +44,7 @@ class e107TinyMceParser
|
|||||||
{
|
{
|
||||||
$html = '';
|
$html = '';
|
||||||
|
|
||||||
if(defined('TINYMCE_DEBUG'))
|
if(defined('TINYMCE_DEBUG') || defined('TINYMCE_UNIT_TEST'))
|
||||||
{
|
{
|
||||||
$this->gzipCompression = false;
|
$this->gzipCompression = false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user