Skip to content

Commit

Permalink
BUGFIX When inserting an image in HtmlEditorField, don't append "px" as
Browse files Browse the repository at this point in the history
the width and height attributes only accept a number without a unit
  • Loading branch information
Sean Harvey committed Apr 2, 2012
1 parent 8913bf7 commit 8926741
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions javascript/HtmlEditorField.js
Expand Up @@ -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()
};
Expand Down

0 comments on commit 8926741

Please sign in to comment.