How can I set the focus in the new contenteditable div? How can I change its value?

128 views
Skip to first unread message

aoioka...@gmail.com

unread,
Mar 6, 2017, 8:41:39 AM3/6/17
to JavaScriptSpellCheck
I'm trying to set values inside the spellchecker div generated by your component, and then I'm trying to set the focus to continue editing the text, I'm having problems with clearing the value too, even when your component replicates the original textarea's value some times it does not work until I force a blur event. Is there a way to achieve this value and focus manipulation with the component API? 'Cause JS and Jquery are not enough if I don't know how the component is working with the events, focus, blur with respect the original textarea and the contenteditable div.

Thank you for your help

Live Spell

unread,
Mar 7, 2017, 2:00:33 AM3/7/17
to aoioka...@gmail.com, JavaScriptSpellCheck
Hi

Option 1:
Bind the events to the Textarea before initializing the spellchecker.

Option 2:
Add the events in the textarea tag like
<textarea onblur=

Option 3:
Bind the events to the spellchecker DIV element its self
On Mon, Mar 6, 2017 at 8:41 PM <aoioka...@gmail.com> wrote:
I'm trying to set values inside the spellchecker div generated by your component, and then I'm trying to set the focus to continue editing the text, I'm having problems with clearing the value too, even when your component replicates the original textarea's value some times it does not work until I force a blur event. Is there a way to achieve this value and focus manipulation with the component API? 'Cause JS and Jquery are not enough if I don't know how the component is working with the events, focus, blur with respect the original textarea and the contenteditable div.

Thank you for your help

--
You received this message because you are subscribed to the Google Groups "JavaScriptSpellCheck" group.
To unsubscribe from this group and stop receiving emails from it, send an email to javascriptspellc...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages