1
0
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:
Cameron
2018-08-26 12:25:08 -07:00
parent db976c931b
commit 9fc35e190c
3 changed files with 12 additions and 10 deletions

View File

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