Open msahinciftci opened 4 years ago
I noticed something similar, I think this is only temporary while the image loads. The emoji image is 7MB and on mobile this takes longer and the website gets blocked while the loading is ongoing.
I had the same issue, it seems that behaviour was predictible cause i just had to uncomment 2 lines and comment the others, it works well now : module.textarea-emoji.js, line : 162;
` let customButton = document.querySelector('.bem-' + emoji.item.name); if (customButton) { customButton.addEventListener('click', function() {
/* Lines I uncommented */
quill.insertText(range.index, customButton.innerHTML);
quill.setSelection(range.index + customButton.innerHTML.length, 0);
// range.index = range.index + customButton.innerHTML.length;
/* Lines I had to comment */
// quill.insertEmbed(range.index, 'emoji', emoji.item, Quill.sources.USER);
// setTimeout(() => quill.setSelection(range.index + 1), 0, Quill.sources.USER);
fn_close();
});
}`
As the title says, when I place an emoji, I can't write anything. Also I can't go past to emoji. It doesn't allow me to. This is my code: