tags:

views:

674

answers:

2

Is there a way to set the height of CKEditor 3.0 to a percentage, such as 100%, such that it takes up the whole window?

I am currently using absolute values, but they do not blend well with my UI :(

CKEDITOR.replace('editor1',{
    height: '600px'
});
A: 

Add directly height in ckeditor.js. Search for iframe and add height to it directly.

Say
+2  A: 

The documentation on ckeditor for CKEDITOR.config.height say that they do not support percentage units e.g.: 30%; however, there is a td with a class of cke_contents. if you set the height on that (with an absolute value it will work).

It seems that ckeditor does not have a good solution for this problem. The only other way I can think of is to use javascript to change the style on the above td.

Lathan