Closed amanangira closed 4 years ago
I experimented with above code and came to a conclusion that the caret resets to the starting of an editable div when the value is changed using jQuery text() method. To fix this I changed the div tag to input tag in jquery.emojiarea.js I will try to make these changes in a separate branch.
So here's a function that i call when i detect a space in the input of div which is created on hiding the original input
The result of above code is translated language but the caret moves at the starting of the div.