CKEditor should respect the #rows variable on form textareas. At the moment the default editor height for each form seems to be around twice the height of the textarea with editor disabled.

Comments

nirbhasa’s picture

My apologies - it does reflect textarea size to an extent, but it is still a bit on the big side :)

The current formula, in pixels is:
height = (no of rows) x 14 + 140

Might I suggest it be changed to:
height = (no of rows) x 12 + 100

wwalc’s picture

Well, the problem is that it actually depends on your default font-size used in the editor and the height of the toolbar... perhaps it is something that could be configurable in the global profile (the formula).. any votes for this?

nirbhasa’s picture

I wonder is it possible to pass in the number of rows in the toolbar as a variable? Then you only need the user to supply the font size used (perhaps you could also get the font size using an idea like the one outlined here...)

SimonVlc’s picture

One vote going to setup the default textarea height ;)!

geerlingguy’s picture

Subscribe - I'd like to be able to make the editor taller or shorter (at least) for each profile.

kvvnn’s picture

Subscribe - I'd like to be able to make the editor taller or shorter (at least) for each profile.

In the meantime, you can insert a static height in your profile within your profile's configuration -> Advanced -> Javascript Options using

CKEDITOR.config.height = '2000px;'
vstmusic’s picture

Thanks Kevin !

Is is possible to use a different value for the height of NODE edition and the height of a COMMENT edition ?

How can I do that ?

Thanks for help

dczepierga’s picture

Status: Active » Closed (fixed)

Hmmm probably u must write sth yourself to do that... for example write a function in JS that define height by URL regex, params or sth like that.

kvvnn’s picture

vstmusic : yes in the CKEditor configurations page you can create different profiles for different editor ID's.