1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 14:17:49 +02:00

Tinymce correction - post_html required to use it.

This commit is contained in:
Cameron
2013-05-01 03:44:07 -07:00
parent e064ae2085
commit bf27d8723a
2 changed files with 6 additions and 4 deletions

View File

@@ -15,10 +15,12 @@
if (!defined('e107_INIT')) { exit; }
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')
{

View File

@@ -89,12 +89,12 @@ if($_POST['mode'] == 'tobbcode')
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]
// $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.
}
}