Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML spellcheck on existing text Chrome

I'm trying to use HTML spellcheck on a textarea in Chrome. This works on the text I type but, I need to use it with existing text. This doesn't work, only when I select the text then the spellcheck activates. I simply use this:

<TEXTAREA spellcheck="true" class="operatorchat" name="inputtext" id="inputtext">This text is worng!</TEXTAREA>

In Firefox it works. Is there any code to make it work, I thought about selecting and deselecting with Javascript but it doesn't work.

Thanks in advance.

like image 966
Ben Groot Avatar asked Jan 28 '26 06:01

Ben Groot


2 Answers

The HTML5 spec allows browsers to decide if they want to start spell-checking by default or not. FF 5 does; Chrome 12 doesn't. So it actually is working. Just, unfortunately, not the way you want.

http://www.w3.org/TR/html5/editing.html#attr-spellcheck

like image 113
james.garriss Avatar answered Jan 29 '26 18:01

james.garriss


Found this one and works great!

http://jquery-spellchecker.badsyntax.co/

like image 33
Ben Groot Avatar answered Jan 29 '26 19:01

Ben Groot



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!