Div.contenteditable gets deleted content

is there any way to get the content being deleted in div.contenteditable

for example, the content in div is

@ xx Hello < / div >
what if you delete any one of the characters in @ xx and delete @ xx as a whole?

<div ref="fillBox" class="fill-blank-box" contenteditable="true" v-html="questionHtml">

   </div>
Oct.21,2021

listen for keyboard events. When you press the delete key, get the cursor position and look ahead to see if it is the result you want. If so, do the delete operation you need

Menu