In my contenteditable div, I have the spellcheck
attribute set to true
. The "red squiggles" work before (and in) any span that's present, but not after. In the following HTML:
<div contenteditable="true" id="input" class="input" spellcheck="true">
misssspellelellled
<span class="test-span">
imaspan!
</span>
alsomisspelleelled
</div>
The first word (misssspellelellled
) and the text in the span (imaspan!
) show up as misspelled, but the word after the span (alsomisspelleelled
) does not. See the following screenshot:
Any ideas as to how to fix this? This bug may be specific to Chrome.
A live example can be found here: http://codepen.io/kauffecup/pen/AnBIK (you may need to focus and blur the div to get any "red squiggles" to show).