-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
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
Spelling error does not trigger with the DOM has only ONE word #56
Comments
I've fixed it in my project. we need to update code in HtmlParser.prototype.highlightWords method. find var regExp = ''; and replace it with var regExp = ''; (in 2 and 4 rows "?"-sign added before closing bracket) |
The regex fix listed by motan does not work for me, because it highlights misspelled words in other words. For instance if "wor" were highlighted as misspelled, any "wor" in "word" would also be highlighted. |
i replace it with var regExp = ''; |
The patch provided by tangruixing works well for me. |
the last patch doesn't match last words in paragraphs that don't have a punctuation sign. I propose this variant which matches both first and last words: var regExp = ''; |
In the demo environment url below, if you erase everything and just type one bad spelling "eg: denounncing", the error style/event bind does not happen. Same issue in my local. I am using nhunspell, and newton for my backend.
Also, its the same issue if the first word or the last word contains has bad spelling.
http://jquery-spellchecker.badsyntax.co/ckeditor.html
The text was updated successfully, but these errors were encountered: