mirror of
https://github.com/e107inc/e107.git
synced 2025-10-12 05:24:38 +02:00
TinyMce fixes
This commit is contained in:
@@ -12,17 +12,20 @@
|
||||
require_once("../../../../class2.php");
|
||||
|
||||
|
||||
|
||||
if($_POST['mode'] == 'tohtml')
|
||||
{
|
||||
$content = $tp->toDB($_POST['content']);
|
||||
e107::getBB()->setClass($_SESSION['media_category']);
|
||||
echo $tp->toHtml($_POST['content'],true);
|
||||
echo $tp->toHtml($content,true);
|
||||
e107::getBB()->clearClass();
|
||||
}
|
||||
|
||||
if($_POST['mode'] == 'tobbcode')
|
||||
{
|
||||
// echo $_POST['content'];
|
||||
echo e107::getBB()->htmltoBBcode($_POST['content']);
|
||||
$content = stripslashes($_POST['content']);
|
||||
echo e107::getBB()->htmltoBBcode($content);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user