2

Just a div with contenteditable and then manually setting innerHTML to a text with typos

editor.innerHTML="helo helo<br>hrlo<br>"
<div contenteditable=true id=editor style="border:solid;border-width:1px"></div>

How can I tell chrome to spellcheck this text ?

I know that officially you need a user interaction and that forceSpellCheck() is not supported yet by Chrome. Is there another hack/workaround ??

Thx!

kofifus
  • 17,260
  • 17
  • 99
  • 173

0 Answers0