How to automatic resize tinyMCE?
问题 I have a TinyMCE that is set over a TextArea, and I want this editor area to ocuppy all the space of its parent div, all times. I have a JS function that get the current space and set the textarea.style.height to it, but when I enables TinyMCE it seems to stop working. Also, the textarea has width: 100%; it doesn't resize by HTML rendering when it's using TinyMCE too. Any ideas? 回答1: Nowadays, you should use the autoresize plugin that comes with tinyMCE. You will have to call tinyMCE like