When using the tinymce editor with the autoresize plugin enabled, I have noticed that it works correctly with text. However, there is an issue when inserting HTML content via execCommand. For example, if I insert the following code:
<div>
<img src="/path/to/image" width="200px" height="160px"/>
</div>
and then delete it by pressing backspace, tinymce removes the HTML node from the iframe but the autoresize plugin does not resize to a smaller height. This is because there is no longer any HTML content of the image present.
Has anyone encountered this issue and found a solution?