We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
Firstly thank you for your good work, the plugin works fine.
I did however found one bug: when you set disableInInput option to true, tag "a" is disabled as well, "a" being obviously included in "textarea".
I modified the triggeredInDisableTags function to enclose the tags between asterisks (*) and it seems to solve the problem.
Modified function (replace [asterisk] by an asterisk, I had to do this noticing that the "preview" was deleting most of them ?):
function triggeredInDisableTags(event, disableInInput) { if (!disableInInput){ return false; } var disableTags = '[asterisk]textarea[asterisk]input[asterisk]'; var element = event.target || event.srcElement; if (element.nodeType === 3) { element = element.parentNode; } return (disableTags.toLowerCase().indexOf('[asterisk]'+element.tagName.toLowerCase()+'[asterisk]') >= 0) ? true : false; }
I don't know if this is a clean or dirty fix ;) but I felt I had to share it.
Thanks again.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello,
Firstly thank you for your good work, the plugin works fine.
I did however found one bug: when you set disableInInput option to true, tag "a" is disabled as well, "a" being obviously included in "textarea".
I modified the triggeredInDisableTags function to enclose the tags between asterisks (*) and it seems to solve the problem.
Modified function (replace [asterisk] by an asterisk, I had to do this noticing that the "preview" was deleting most of them ?):
function triggeredInDisableTags(event, disableInInput) {
if (!disableInInput){
return false;
}
var disableTags = '[asterisk]textarea[asterisk]input[asterisk]';
var element = event.target || event.srcElement;
if (element.nodeType === 3) { element = element.parentNode; }
return (disableTags.toLowerCase().indexOf('[asterisk]'+element.tagName.toLowerCase()+'[asterisk]') >= 0) ? true : false;
}
I don't know if this is a clean or dirty fix ;) but I felt I had to share it.
Thanks again.
The text was updated successfully, but these errors were encountered: