Hi
Let me first say, that this piece of software is amazing. It is a great editor tough quite complex to configure. But this is just because it is written in JavaScript.
I would like to make the editior have a certain size. I know, I can set the editor's textarea's size and the toolbar and everything else wrapps around it. I want to set the whole editor's size and the editor should handle the textarea to be sized appropriately.
Is this possible? And if it is, how is it posible?
I am using the latest 3.2.1 and am replacing a HTML textarea.
Cheers,
Qudus
Let me first say, that this piece of software is amazing. It is a great editor tough quite complex to configure. But this is just because it is written in JavaScript.
I would like to make the editior have a certain size. I know, I can set the editor's textarea's size and the toolbar and everything else wrapps around it. I want to set the whole editor's size and the editor should handle the textarea to be sized appropriately.
Is this possible? And if it is, how is it posible?
I am using the latest 3.2.1 and am replacing a HTML textarea.
Cheers,
Qudus
Re: Setting editor height including toolbar
Any idea about this? Or is this simply not possible?
Re: Setting editor height including toolbar
You're right - if you set an initial size this does NOT take toolbar or resizer handle into account - and since toolbars vary and can wrap we can't even make a good guess.
The only way I've found to do this is to initially set a content height of 0 to keep the editor reasonably small (prevents page scrollbars flashing on for a moment), then to fire a resize method in the on 'instanceReady' handler: