I'm using Vue and I have the Quill editor inside a div (which is why I'm using the deprecated DOMSubtreeModified
), and I want to fire an event to send an API request to save the content of the editor to the database.
Right now, below is what I have but it doesn't register backspace when I delete a character. I also don't want to recognize arrow keys when someone is moving around the editor.
What's the best way to handle this?
<div
@DOMSubtreeModified="saveFunction($event)">
</div>