1
0
mirror of https://github.com/e107inc/e107.git synced 2025-10-12 05:24:38 +02:00

TinyMce fixes

This commit is contained in:
CaMer0n
2012-07-11 09:56:55 +00:00
parent ab11d260ee
commit c59b733023
3 changed files with 223 additions and 7 deletions

View File

@@ -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);
}