Open maneeshpatel opened 7 years ago
I have similar issue, but it's fixed for me by $('.emoji-wysiwyg-editor').empty();
with version 1.1.5 they are no longer blank divs. They are now
<div><br></div>
And they no longer go away with $('.emoji-wysiwyg-editor').empty();
Related to on enter key press.
A workaround to have <br>
being inserted instead of <div><br></div>
is to update the change event of the emojiarea and capture the enter event.
if (e.which == 13) {
e.preventDefault();
document.execCommand('insertHTML', false, '<br>');
return false;
}
Also, I found the removing the keyup and keydown event was helpful in inserting only one <br>
tag.
this.$editor.on("change resize scroll", function(e) { ... }
Hey, While typing anything in textbox,two blanks divs are being generated automatically inside "emoji-wysiwyg-editor" div. Even after
$('.emoji-wysiwyg-editor').empty();
those blanks div are present.Anyone is also facing same issue?