emojionearea icon indicating copy to clipboard operation
emojionearea copied to clipboard

Update html on keyup and mentain caret position

Open adb-co opened this issue 5 years ago • 1 comments

Hey mervick,

I am trying to make the html update on keyup event, but I can't figure it out. Case: typing " :shortcode: " and after the shortcode has ended, replace it with the emoji html, while keeping the caret position.

Any ideas? Thanks in advance

adb-co avatar Oct 05 '19 16:10 adb-co

Can you create a demo of what you have so far?

https://jsfiddle.net/mervick/1v03Lqnu/

carpii avatar Oct 05 '19 18:10 carpii