summernote-emoji
summernote-emoji copied to clipboard
Emoticons inserted at start of sentence instead at cursor position?
Good day, Great plugin you wrote!
During testing, I noticed that inserting emoticons is not that easy. When I have written a sentence, and I want to insert an emoticon in the middle of that sentence, I place my cursor there ... then click on the Emoticon icon, click through that menu, find an emoticon , click on it, then it appears at the start of the sentence. As if my cursor position in the sentence has been forgotten, when I click on one of the tabs.
The emoticon gets only inserted in the correct place when I use the emoticons from the first tab (the last used emoticons).
Any idea on how to fix this?
Thank you very much.
Please update
The Bugfix doesn't fix the issue. It seems the cursor position is getting lost, when you switch the Emoji Tab in the Panel. It works only correctly if you use the current open tab.
$('.note-editable').on('focusout', function () {//Keeping the editor always in the editing state can solve my problem $(this).trigger('focus') });