Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

tinyMCE autoresize problem

Tags:

tinymce

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

like image 420
bah Avatar asked Feb 17 '10 22:02

bah


People also ask

How do you make TinyMCE responsive?

The TinyMCE editor can be made responsive by using css media queries. Simply add css rules that set the width property of table. mceLayout and the tinyMCE textareas. You will need to enforce these css rules using !

How do I resize TinyMCE?

max_width. This option sets the maximum width that a user can stretch the entire TinyMCE interface (by grabbing the draggable area in the bottom right of the editor interface). This behavior is different than the autoresize plugin, which controls the resizing of the editable area only, not the entire editor.

How do I get rid of powered by tiny?

Use the branding option to disable the “Powered by Tiny” link displayed in the status bar for product attribution.

Does TinyMCE support markdown?

By default, it has basic markdown patterns.


2 Answers

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 image 92
Rob Dawson Avatar answered Oct 20 '22 02:10

Rob Dawson


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!

like image 20
SG 86 Avatar answered Oct 20 '22 04:10

SG 86