Skip to content
This repository
Browse code

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
Sean Harvey authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  javascript/HtmlEditorField.js
4  javascript/HtmlEditorField.js
@@ -782,8 +782,8 @@ ss.editorWrappers['default'] = ss.editorWrappers.tinyMCE;
782 782
 				return {
783 783
 					'src' : this.find(':input[name=URL]').val(),
784 784
 					'alt' : this.find(':input[name=AltText]').val(),
785  
-					'width' : width ? parseInt(width, 10) + "px" : null,
786  
-					'height' : height ? parseInt(height, 10) + "px" : null,
  785
+					'width' : width ? parseInt(width, 10) : null,
  786
+					'height' : height ? parseInt(height, 10) : null,
787 787
 					'title' : this.find(':input[name=Title]').val(),
788 788
 					'class' : this.find(':input[name=CSSClass]').val()
789 789
 				};

0 notes on commit 8926741

Please sign in to comment.
Something went wrong with that request. Please try again.