emoji-picker
emoji-picker copied to clipboard
How to reset the input?
I'm using sockets to send messages. On form submit I clear the text area. How do I update the emoji div?
I also change the placeholder text depending on certain selections in the form I'd like to force update that for the content.
+1
+1
Try this element.val(""); $('.emoji-wysiwyg-editor').html("");
$('#input').val("")
$('.emoji-wysiwyg-editor').empty();
totally not working
I solved with document.location.href to call the same page but not reloading it
dynamic change like this code:
$(".emoji-wysiwyg-editor").empty() // empty div window.emojiPicker.appendUnicodeAsImageToElement($(".emoji-wysiwyg-editor"),"text value") // translate your unicode string to html code fill the div $(".emoji-wysiwyg-editor").css("white-space", "pre-wrap") //keep origin string word wrap;