Closed (fixed)
Project:
CKEditor 4 - WYSIWYG HTML editor
Version:
6.x-1.0-beta1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Dec 2009 at 12:42 UTC
Updated:
23 Sep 2010 at 00:29 UTC
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
Comment #1
nirbhasa commentedMy 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
Comment #2
wwalc commentedWell, 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?
Comment #3
nirbhasa commentedI 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...)
Comment #4
SimonVlc commentedOne vote going to setup the default textarea height ;)!
Comment #5
geerlingguy commentedSubscribe - I'd like to be able to make the editor taller or shorter (at least) for each profile.
Comment #6
kvvnn commentedSubscribe - 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
Comment #7
vstmusic commentedThanks 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
Comment #8
dczepierga commentedHmmm 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.
Comment #9
kvvnn commentedvstmusic : yes in the CKEditor configurations page you can create different profiles for different editor ID's.