mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUG insert media trims whitespace - fixes #845
This commit is contained in:
parent
c2af23033f
commit
2e6e8af161
@ -1074,7 +1074,8 @@ ss.editorWrappers['default'] = ss.editorWrappers.tinyMCE;
|
||||
|
||||
validate: function() {
|
||||
var val = this.val(), orig = val;
|
||||
|
||||
|
||||
val = $.trim(val);
|
||||
val = val.replace(/^https?:\/\//i, '');
|
||||
if (orig !== val) this.val(val);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user