Revert "BUG insert media trims whitespace fixes #845"

This commit is contained in:
Will Rossiter 2015-01-13 15:23:28 +13:00
parent b09091cb5f
commit 90b134d0d1

View File

@ -1074,8 +1074,7 @@ ss.editorWrappers['default'] = ss.editorWrappers.tinyMCE;
validate: function() {
var val = this.val(), orig = val;
val = val.trim();
val = val.replace(/^https?:\/\//i, '');
if (orig !== val) this.val(val);