You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
Thanks for this great project.
The text was updated successfully, but these errors were encountered:
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 return
null
orfalse
:Is there a cleaner solution? Did I misinterpret the docs?
Thanks for this great project.
The text was updated successfully, but these errors were encountered: