summernote-emoji icon indicating copy to clipboard operation
summernote-emoji copied to clipboard

Emoticons inserted at start of sentence instead at cursor position?

Open SaintPaddy opened this issue 6 years ago • 3 comments

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.

SaintPaddy avatar Oct 22 '18 20:10 SaintPaddy

Please update

trinhtam avatar Nov 27 '18 02:11 trinhtam

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.

wikando-rw avatar Nov 30 '18 12:11 wikando-rw

$('.note-editable').on('focusout', function () {//Keeping the editor always in the editing state can solve my problem $(this).trigger('focus') });

YHWwang avatar Aug 19 '21 10:08 YHWwang