How do I enable spell check feature in HTML text area?
I want to enable 开发者_JAVA百科spell check feature in HTML text areas. I am using ColdFusion. Is this possible?
You could try to enable native spellcheck support for input forms, like this:
<input type="text" size="50" spellcheck="true">
<textarea spellcheck="true"></textarea>
You can also designate a correct language dictionary to use. If not specified, the browser's default language dictionary will be used. You can override browser defaults by specifying the lang
attribute .
<input type="text" spellcheck="true" lang="en">
I have used Foundeo's spell checker before. Very easy to integrate and customise.
The browser will automatically spell check if it supports that feature. For JavaScript based spell checking, see here: http://www.javascriptspellcheck.com/
-Sunjay
If using React, you have to capitalize the c
:
spellCheck='true'
精彩评论