You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
May I ask a question about focus of the editor, that is, when keyboard is closed, the editor loses focus.
I have tried to restore the cursor/selection after closing keyboard in this way:
save the selection range by invoking
_evaluateJavascript(source: "$('#summernote-2').summernote('saveRange');");
focus the editor and restore the selection range by invoking
_evaluateJavascript(source: "$('#summernote-2').summernote('focus');");
_evaluateJavascript(source: "$('#summernote-2').summernote('restoreRange');");
But it does not work.
Is there any method to persist editor cursor/selection when keyboard is dismissed?
Btw, I dismiss keyboard by SystemChannels.textInput.invokeMethod('TextInput.hide')
Thanks.
The text was updated successfully, but these errors were encountered:
Hi,
May I ask a question about focus of the editor, that is, when keyboard is closed, the editor loses focus.
I have tried to restore the cursor/selection after closing keyboard in this way:
_evaluateJavascript(source: "$('#summernote-2').summernote('saveRange');");
_evaluateJavascript(source: "$('#summernote-2').summernote('focus');");
_evaluateJavascript(source: "$('#summernote-2').summernote('restoreRange');");
But it does not work.
Is there any method to persist editor cursor/selection when keyboard is dismissed?
Btw, I dismiss keyboard by SystemChannels.textInput.invokeMethod('TextInput.hide')
Thanks.
The text was updated successfully, but these errors were encountered: