There is a certain html in the clipboard
<img src="http://this.site-tt.ru/photos/opacity.png" class="ke ke-D83DDE12" emoji="D83DDE12" style="background-image: url("../img/emoji.png");"> there is a text field, suppose, the usual paragraph (p), where I paste the text of their clipboard. You can make it so that I put in an already formatted html (with the link cut off and the 'style' attribute removed):
<p contenteditable="true"><img src="/photos/opacity.png" class="ke ke-D83DDE12" emoji="D83DDE12"></p>. Or, make it so that it is copied to the buffer already formatted, as in "p"