Merge pull request #308 from okriuchykhin/ok_SCI_684

Changes default behaviour for absolute urls in Quill [SCI-684]
This commit is contained in:
okriuchykhin 2016-11-21 14:34:38 +01:00 committed by GitHub
commit c13a1cdd5c

View file

@ -0,0 +1,10 @@
//= require quill
// Globally overwrite links handling in Quill rich text editor
var Link = Quill.import('formats/link');
Link.sanitize = function(url) {
if (url.includes('http:') || url.includes('https:')) {
return url;
}
return 'http://' + url;
};