Skip to content

Commit

Permalink
TinyMce Image align left/right parsing fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
CaMer0n committed Aug 22, 2018
1 parent 1f69d7c commit 7e4f22c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion e107_handlers/bbcode_handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ function imgToBBcode($html, $fromDB = false)
$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;
}
Expand Down
6 changes: 3 additions & 3 deletions e107_plugins/tinymce4/plugins/e107/parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -20,7 +20,7 @@
$_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");
}
Expand All @@ -44,7 +44,7 @@ function __construct()
{
$html = '';

if(defined('TINYMCE_DEBUG'))
if(defined('TINYMCE_DEBUG') || defined('TINYMCE_UNIT_TEST'))
{
$this->gzipCompression = false;
}
Expand Down

0 comments on commit 7e4f22c

Please sign in to comment.