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;
|
width = attrs.width;
|
||||||
height = attrs.height;
|
height = attrs.height;
|
||||||
|
|
||||||
// handle [img=340x240]url[/img]
|
// handle [img=IMAGE_URL][/img]
|
||||||
if (attrs.defaultattr) {
|
if (attrs.defaultattr) {
|
||||||
match = attrs.defaultattr.split(/x/i);
|
content = attrs.defaultattr;
|
||||||
|
|
||||||
width = match[0];
|
|
||||||
height = (match.length === 2 ? match[1] : match[0]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (width !== undef) {
|
if (width !== undef) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user