mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-29 20:59:23 +02: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…
Reference in New Issue
Block a user