Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.!

like image 802
asenovm Avatar asked May 19 '26 05:05

asenovm


1 Answers

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

You can find an example here.

like image 165
bfncs Avatar answered May 21 '26 19:05

bfncs