BUGFIX When inserting an image in HtmlEditorField, don't append "px" as

the width and height attributes only accept a number without a unit
This commit is contained in:
Sean Harvey 2012-04-02 14:10:20 +12:00
parent 8913bf7b05
commit 89267419d4

View File

@ -782,8 +782,8 @@ ss.editorWrappers['default'] = ss.editorWrappers.tinyMCE;
return {
'src' : this.find(':input[name=URL]').val(),
'alt' : this.find(':input[name=AltText]').val(),
'width' : width ? parseInt(width, 10) + "px" : null,
'height' : height ? parseInt(height, 10) + "px" : null,
'width' : width ? parseInt(width, 10) : null,
'height' : height ? parseInt(height, 10) : null,
'title' : this.find(':input[name=Title]').val(),
'class' : this.find(':input[name=CSSClass]').val()
};