mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 06:07:32 +02:00
TinyMce styling corrected to work with newer version of TinyMce. TinyMce parser image path corrections. Old Tinymce popup code removed.
This commit is contained in:
@@ -26,7 +26,7 @@ e107::css('inline',"
|
||||
|
||||
");
|
||||
|
||||
e107::js('tinymce4','plugins/compat3x/tiny_mce_popup.js');
|
||||
// e107::js('tinymce4','plugins/compat3x/tiny_mce_popup.js');
|
||||
|
||||
e107::js('inline',"
|
||||
|
||||
|
@@ -189,6 +189,9 @@ TEMPL;
|
||||
|
||||
if(check_class($pref['post_html'])) // Plain HTML mode.
|
||||
{
|
||||
|
||||
$content = trim($content);
|
||||
|
||||
$srch = array('src="'.e_HTTP.'thumb.php?','src="/{e_MEDIA_IMAGE}');
|
||||
$repl = array('src="{e_BASE}thumb.php?','src="{e_BASE}thumb.php?src=e_MEDIA_IMAGE/');
|
||||
$content = str_replace($srch, $repl, $content);
|
||||
@@ -261,6 +264,11 @@ TEMPL;
|
||||
);
|
||||
|
||||
}
|
||||
elseif(defined('TINYMCE_DEBUG'))
|
||||
{
|
||||
print_a("thumbUrlDecode: No Matches");
|
||||
|
||||
}
|
||||
|
||||
|
||||
return $ret;
|
||||
@@ -280,6 +288,11 @@ TEMPL;
|
||||
$srch = array("?","&");
|
||||
$repl = array("\?","&");
|
||||
|
||||
if(defined('TINYMCE_DEBUG'))
|
||||
{
|
||||
print_a($arr);
|
||||
}
|
||||
|
||||
foreach($arr['img'] as $img)
|
||||
{
|
||||
$regexp = '#(<img[^>]*src="'.str_replace($srch, $repl, $img['src']).'"[^>]*>)#';
|
||||
@@ -299,6 +312,7 @@ TEMPL;
|
||||
$qr['h'] = $img['height'];
|
||||
}
|
||||
|
||||
$qr['ebase'] = true;
|
||||
$src = e107::getParser()->thumbUrl($qr['src'],$qr);
|
||||
|
||||
$replacement = '<img src="'.$src.'" '.$style.$alt.$title.$class.$width.$height.' />';
|
||||
|
@@ -75,8 +75,8 @@
|
||||
title: 'Media Manager',
|
||||
url: url + '/mediamanager.php?image',
|
||||
width: 1050,
|
||||
height: 650
|
||||
|
||||
height: 680,
|
||||
id: 'media-manager'
|
||||
});
|
||||
}
|
||||
});
|
||||
@@ -96,8 +96,8 @@
|
||||
title: 'Media Manager',
|
||||
url: url + '/mediamanager.php?video',
|
||||
width: 1050,
|
||||
height: 650
|
||||
|
||||
height: 650,
|
||||
id: 'media-manager'
|
||||
});
|
||||
}
|
||||
});
|
||||
@@ -112,8 +112,9 @@
|
||||
title: 'Media Manager',
|
||||
url: url + '/mediamanager.php?glyph',
|
||||
width: 1050,
|
||||
height: 650
|
||||
|
||||
height: 650,
|
||||
id: 'media-manager'
|
||||
|
||||
});
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user