this._editor = new Squire($element[0]);
this._editor.linkRegExp = null;
Then I noticed, that paste is broken. After debugging it turns out, that insertHTML() fails due to an exception.
My solution, let linkRegExp always return null or false:
this._editor.linkRegExp = {
exec: function () {
return null;
},
test: function () {
return false;
}
};
Is there a cleaner solution? Did I misinterpret the docs?
I tried to turn off link detection as mentioned in the docs: https://github.com/fastmail/Squire#linkregexp like this:
Then I noticed, that paste is broken. After debugging it turns out, that
insertHTML()
fails due to an exception. My solution, let linkRegExp always returnnull
orfalse
:Is there a cleaner solution? Did I misinterpret the docs?
Thanks for this great project.