vytaux
vytaux

Reputation: 2562

tinyMCE autoresize problem

http://img218.imageshack.us/img218/5765/45696158.jpg Having problem with tinyMCE's autoresize plugin... Is this correct behaviour or not?

Upvotes: 6

Views: 3721

Answers (2)

SG 86
SG 86

Reputation: 7078

Like Rob said you need to specify the start height.

Like this:

tinyMceInit: function() {
    $('textarea.tinymce').tinymce({
         ....

         width : 600,
         **height : 90,**
         theme_advanced_resizing_min_height : 90,
         theme_advanced_resizing_max_height : 180,

         ....
    });
}, 

If you got resizing enabled you can limit it with max and min height!

Upvotes: 1

Rob Dawson
Rob Dawson

Reputation: 1347

Without a specified height and width to use, the autoresize plugin will decrease the height of the element. (it is increased as you type)

With a height specified, the initial display should keep that height.

Without seeing your code, it is hard to give more information.

Upvotes: 3

Related Questions