Changes default behaviour for absolute urls in Quill [SCI-684]

This commit is contained in:
Oleksii Kriuchykhin 2016-11-21 14:09:56 +01:00
parent 1dff6c527e
commit d6f5f6b9bf

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;
};