1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

TinyMce e107Bbcode fixes

This commit is contained in:
CaMer0n
2012-05-05 02:15:51 +00:00
parent 1990c7c8d7
commit b14a31df39
2 changed files with 6 additions and 14 deletions

View File

@@ -544,7 +544,7 @@ class media_admin_ui extends e_admin_ui
{
var style = '';
var bb = '';
var src = document.getElementById('src').value;
var width = document.getElementById('width').value;
var height = document.getElementById('height').value;
@@ -555,12 +555,12 @@ class media_admin_ui extends e_admin_ui
if(width !='')
{
style = style + 'width:' + width + 'px;';
// style = style + 'width:' + width + 'px;';
}
if(height !='')
{
style = style + 'height:' + height + 'px;';
// style = style + 'height:' + height + 'px;';
}
if(margin_right !='')
@@ -596,7 +596,9 @@ class media_admin_ui extends e_admin_ui
document.getElementById('bbcode_holder').value = bb;
var html = '<img style=\"' + style + '\" src=\"'+ src +'\" />';
// var html = '<img style=\"' + style + '\" src=\"'+ src +'\" />';
var html = '<img style=\"' + style + '\" src=\"'+ src +'\" alt=\"\" width=\"' + width + '\" height=\"' + height + '\"/>';
document.getElementById('html_holder').value = html;
}

View File

@@ -25,16 +25,6 @@ require_once("../../../../class2.php");
header("Location: ".e_ADMIN_ABS.'image.php?mode=main&action=dialog&for=news&tagid=news-thumbnail&iframe=1&bbcode=1');
exit;
$_GET['iframe'] = 1;
$_GET['mode'] = 'main';
$_GET['action'] = 'dialog';
$_GET['for'] = 'news';
$_GET['tagid'] = 'news-thumbnail';
$_GET['bbcode']= 1;
//
require_once(e_ADMIN.'image.php');
exit;
if (!defined('e107_INIT')) { exit; }