mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
8913bf7b05
commit
89267419d4
@ -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()
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user