asenovm
asenovm

Reputation: 6517

Tinymce AutoResize issue

I'm using tinymce 3.5 with the autoresize plugin. The plugin works great for me while the user is adding content, but afterwards I'm serializing this content in order to allow for later editing of it. The issue is that after deserializing the content the autoresize plugin won't trigger. I tried executing tinymce.activeEditor.execCommand('mceAutoResize'); in the onInit, onPostRender and so on callbacks but it is to no avail - my content gets cropped to initial height of the text area. After typing in some text the issue disappears. Is there a way that I'm not awared of to manually call the autoresize plugin. Thanks in advance.!

Upvotes: 3

Views: 2822

Answers (1)

bfncs
bfncs

Reputation: 10316

Have you tried to manually call the Resizing in the init_instance_callback?

You can find an example here.

Upvotes: 1

Related Questions