spellchek not working with class name

40 views
Skip to first unread message

anjanap...@gmail.com

unread,
May 17, 2016, 12:12:45 AM5/17/16
to JavaScriptSpellCheck
This spellcheck plugin doesn't work while using SpellCheckAsYouType with classname.

It works well while using with all textinputs as:

$Spelling.SpellCheckAsYouType('textinputs');

but I need to disable the spellcheck for some textinputs so I used separate classname for which I need spellcheck and used it as:

$Spelling.SpellCheckAsYouType('.classname');

And this didn't work. Please provide some solutions to this.

utd....@gmail.com

unread,
May 17, 2016, 4:54:11 PM5/17/16
to JavaScriptSpellCheck, anjanap...@gmail.com

Even I am facing the same problem. It seems like when you have multiple textarea with same class, the SpellCheckAsYouType is applied to only one (either first or last) textarea which has that class. Others are not affected.

SpellChecker Support

unread,
May 19, 2016, 6:19:18 AM5/19/16
to utd....@gmail.com, JavaScriptSpellCheck, anjanap...@gmail.com
Hello
While we investigate -  try this as a fix - which works nicely. var targets = document.querySelectorAll('textarea.className'); 
for(var i=0; i< textareas.length ; i++){      $Spelling.SpellCheckAsYouType(targets[i]);
 } Alternatively - the jQuery Plugin version of the plugin may suit you nicely. http://www.javascriptspellcheck.com/jquery-spell-check/
$('.myClassName').spellAsYouType();





--
You received this message because you are subscribed to the Google Groups "JavaScriptSpellCheck" group.
To unsubscribe from this group and stop receiving emails from it, send an email to javascriptspellc...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

mku...@gmail.com

unread,
Mar 9, 2017, 10:28:08 AM3/9/17
to JavaScriptSpellCheck, utd....@gmail.com, anjanap...@gmail.com, sup...@livespell.com
Dňa štvrtok, 19. mája 2016 12:19:18 UTC+2 SpellChecker Support napísal(-a):
Hello, I have the same problem. It's clearly a bug, why hasn't it been fixed yet?

Live Spell

unread,
Mar 16, 2017, 6:16:04 AM3/16/17
to mku...@gmail.com, JavaScriptSpellCheck, utd....@gmail.com, anjanap...@gmail.com, sup...@livespell.com


var targets = document.querySelectorAll('textarea.className');
  for(var i=0; i< textareas.length ; i++){ $Spelling.SpellCheckAsYouType(targets[i]);
}

Reply all
Reply to author
Forward
0 new messages