BUG insert media trims whitespace - fixes #845

This commit is contained in:
Emma O'Keefe 2015-01-13 14:51:24 +13:00
parent c2af23033f
commit 2e6e8af161

View File

@ -1074,7 +1074,8 @@ 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);