mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 22:27:34 +02:00
Fixes #3386 TinyMce wasn't inserting image correctly when pref "resize dimension" width was empty. Fixed TinyMce cancel button.
This commit is contained in:
@@ -216,12 +216,13 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
|
||||
if (path == '') return;
|
||||
|
||||
// Only Do width/height styling on bbcodes --
|
||||
if(width != '' && width !== undefined)
|
||||
if(width != '' && width != 0 && width !== undefined)
|
||||
{
|
||||
console.log('Width: '+ width);
|
||||
style = style + 'width:' + width + 'px;';
|
||||
}
|
||||
|
||||
if(height != '' && height !== undefined)
|
||||
if(height != '' && height != 0 && height !== undefined)
|
||||
{
|
||||
style = style + 'height:' + height + 'px;';
|
||||
}
|
||||
|
Reference in New Issue
Block a user