Fixed IMG tag bug (sceditor)
This commit is contained in:
parent
e6cef30448
commit
d1a1661725
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user