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