1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-12 01:25:01 +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;
}