Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 89267419d47f4819eb777c5170cd899a3273f511 1 parent 8913bf7
@halkyon halkyon authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 javascript/HtmlEditorField.js
View
4 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()
};
Please sign in to comment.
Something went wrong with that request. Please try again.