JS spellchecker badsyntax replace incorrect word by the suggestion list


JS spellchecker badsyntax replace incorrect word by the suggestion list



There is a spellcheck js library that I would extend it's functional to replace the incorrect word by all the suggestion list joined by a space.



I have difficulty to retrieve the suggestion list in this example:
http://jquery-spellchecker.badsyntax.co/textarea.html



This is the main js class: http://jquery-spellchecker.badsyntax.co/js/jquery.spellchecker.js



I created an event handler that should get the suggestion list, then apply the replace to the incorrect word.


SpellChecker.prototype.onSelecAlltWord = function(e, word, element) {
e.preventDefault();

var allwords = //HERE get the suggestionlist joined by space;
this.replaceWord(this.incorrectWord, allwords);};





Please provide a Minimal, Complete, and Verifiable example. Please look at guide how do I ask a good question?
– Andrzej Ziółek
Jul 1 at 10:38





Welcome to StackOverflow! What is your question? Note that StackOverflow is a platform for questions, not statements X does not do what it is supposed to. Sometimes mere rephrasing of your content helps you get better answers more quickly. Indeed, questions ending with a questionmark tend to get more replies
– sjaustirni
Jul 1 at 10:39



X does not do what it is supposed to









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

How to add background colour in existing image using Swift?

What's the difference between DDS and SOME/IP?

How to make file upload 'Required' in Contact Form 7?