A
A
Andrew2015-09-17 11:33:39
css
Andrew, 2015-09-17 11:33:39

Changing the original size of a text field in CKFinder?

The question is probably stupid, but I can not cope)
Added to the site CKEditor. The initial height of the input field is 200px (minimum 113px). It is necessary to make the editor stretch to the entire height of the window (it is clear that you need to write height: 100%). You can of course "manually" increase the size of the window, but every time it gets boring. Tried to find these values ​​in all editor files. The idea was not successful. Help, good people

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem Spiridonov, 2015-09-17
@ExplosionBrain

Yes, you can. Pass it a parameter on initialization. Integer, pixels are assumed.
$('.smth').ckeditor({height: 500});
Naturally, you can specify in the configuration.
It will not be possible to specify 100%, you need JS to calculate the desired height. For example
var editor_height = $('document').height() - $('.menu').height();
$('.smth').ckeditor({height: editor_height});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question