mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
TinyMCE - new line issue temporary fix, image floats implemented (image
browser)
This commit is contained in:
@@ -17,7 +17,9 @@ if($_POST['mode'] == 'tohtml')
|
|||||||
{
|
{
|
||||||
$content = $tp->toDB($_POST['content']);
|
$content = $tp->toDB($_POST['content']);
|
||||||
e107::getBB()->setClass($_SESSION['media_category']);
|
e107::getBB()->setClass($_SESSION['media_category']);
|
||||||
echo $tp->toHtml(str_replace("\n","",$content), true);
|
// XXX @Cam this breaks new lines, currently we use \n instead [br]
|
||||||
|
//echo $tp->toHtml(str_replace("\n","",$content), true);
|
||||||
|
echo $tp->toHtml($content, true);
|
||||||
e107::getBB()->clearClass();
|
e107::getBB()->clearClass();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -36,6 +36,10 @@ $(document).ready(function()
|
|||||||
|
|
||||||
eMediaAttribute();
|
eMediaAttribute();
|
||||||
});
|
});
|
||||||
|
$("#float").change(function () {
|
||||||
|
|
||||||
|
eMediaAttribute();
|
||||||
|
});
|
||||||
|
|
||||||
function eMediaAttribute(e)
|
function eMediaAttribute(e)
|
||||||
{
|
{
|
||||||
@@ -57,6 +61,7 @@ $(document).ready(function()
|
|||||||
var margin_bottom = $('#margin-bottom').val();
|
var margin_bottom = $('#margin-bottom').val();
|
||||||
var margin_right = $('#margin-right').val();
|
var margin_right = $('#margin-right').val();
|
||||||
var margin_left = $('#margin-left').val();
|
var margin_left = $('#margin-left').val();
|
||||||
|
var _float = $('#float').val();
|
||||||
|
|
||||||
if(width !='')
|
if(width !='')
|
||||||
{
|
{
|
||||||
@@ -87,6 +92,11 @@ $(document).ready(function()
|
|||||||
{
|
{
|
||||||
style = style + 'margin-bottom:' + margin_bottom + 'px;';
|
style = style + 'margin-bottom:' + margin_bottom + 'px;';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(_float =='left' || _float =='right')
|
||||||
|
{
|
||||||
|
style = style + 'float:' + _float + ';';
|
||||||
|
}
|
||||||
|
|
||||||
bb = '[img';
|
bb = '[img';
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user