1

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
  • 14,411
  • 12
  • 82
  • 140

0 Answers0