Fixed IMG tag bug (sceditor)

This commit is contained in:
franciscoarocas 2020-09-20 21:21:39 +01:00
parent e6cef30448
commit d1a1661725
3 changed files with 2 additions and 11 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -45,12 +45,9 @@ sceditor.formats.bbcode.set('img', {
width = attrs.width;
height = attrs.height;
// handle [img=340x240]url[/img]
// handle [img=IMAGE_URL][/img]
if (attrs.defaultattr) {
match = attrs.defaultattr.split(/x/i);
width = match[0];
height = (match.length === 2 ? match[1] : match[0]);
content = attrs.defaultattr;
}
if (width !== undef) {