mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 06:38:00 +02:00
Tinymce correction - post_html required to use it.
This commit is contained in:
@@ -18,7 +18,9 @@ e107::css('inline','
|
|||||||
a.e-wysiwyg-toggle { margin-top:5px }
|
a.e-wysiwyg-toggle { margin-top:5px }
|
||||||
');
|
');
|
||||||
|
|
||||||
if(e_WYSIWYG || strpos(e_SELF,"tinymce/admin_config.php") )
|
$pref = e107::getPref();
|
||||||
|
|
||||||
|
if((e_WYSIWYG && check_class($pref['post_html'])) || strpos(e_SELF,"tinymce/admin_config.php") )
|
||||||
{
|
{
|
||||||
if(e_PAGE != 'image.php')
|
if(e_PAGE != 'image.php')
|
||||||
{
|
{
|
||||||
|
@@ -89,12 +89,12 @@ if($_POST['mode'] == 'tobbcode')
|
|||||||
|
|
||||||
echo ($content) ? "[html]".$content."[/html]" : ""; // Add the tags before saving to DB.
|
echo ($content) ? "[html]".$content."[/html]" : ""; // Add the tags before saving to DB.
|
||||||
}
|
}
|
||||||
else // bbcode Mode.
|
else // bbcode Mode. //XXX Disabled at the moment in tinymce/e_meta.php - post_html is required to activate.
|
||||||
{
|
{
|
||||||
// [img width=400]/e107_2.0/thumb.php?src={e_MEDIA_IMAGE}2012-12/e107org_white_stripe.png&w=400&h=0[/img]
|
// [img width=400]/e107_2.0/thumb.php?src={e_MEDIA_IMAGE}2012-12/e107org_white_stripe.png&w=400&h=0[/img]
|
||||||
// $content = str_replace("{e_BASE}","", $content); // We want {e_BASE} in the final data going to the DB, but not the editor.
|
// $content = str_replace("{e_BASE}","", $content); // We want {e_BASE} in the final data going to the DB, but not the editor.
|
||||||
|
|
||||||
echo e107::getBB()->htmltoBBcode($content);
|
echo e107::getBB()->htmltoBBcode($content); // not reliable enough yet.
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user