Permalink
Browse files

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

the width and height attributes only accept a number without a unit
  • Loading branch information...
1 parent 8913bf7 commit 89267419d47f4819eb777c5170cd899a3273f511 @halkyon halkyon committed Apr 2, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 javascript/HtmlEditorField.js
@@ -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()
};

0 comments on commit 8926741

Please sign in to comment.