开发者

tinyMCE autoresize problem

开发者 https://www.devze.com 2022-12-20 17:22 出处:网络
ht开发者_如何转开发tp://img218.imageshack.us/img218/5765/45696158.jpg Having problem with tinyMCE\'s autoresize plugin... Is this correct behaviour or not? Without a specified height and width to use,

ht开发者_如何转开发tp://img218.imageshack.us/img218/5765/45696158.jpg Having problem with tinyMCE's autoresize plugin... Is this correct behaviour or not?


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.


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!

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号