mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #3784 from silverstripe/revert-3783-3.1
Revert "BUG insert media trims whitespace fixes #845"
This commit is contained in:
commit
ee88a8e538
@ -1074,8 +1074,7 @@ ss.editorWrappers['default'] = ss.editorWrappers.tinyMCE;
|
|||||||
|
|
||||||
validate: function() {
|
validate: function() {
|
||||||
var val = this.val(), orig = val;
|
var val = this.val(), orig = val;
|
||||||
|
|
||||||
val = val.trim();
|
|
||||||
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