Whenever I create another instance of the editor (in my case, through an onkeypress event), I lose focus on the editor I was typing on when the new editor is created. How can I prevent all editors from losing focus on any event?
var quill = new Quill('#editor', {
theme: 'snow'
});
// This will focus the instance of quill editor
quill.focus()
2
votes
setTimeout(() => {
quill.focus();
})
It will work
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more