Hi.
I've just installed CKE4 with autogrow plugin, and set config.js as:
CKEDITOR.editorConfig = function( config ) {
config.width = 800;
config.height = 700;
config.resize_minHeight = 700;
config.autogrow_maxHeight = 0;
config.autoGrow_minHeight = 700;
config.autoGrow_onStartup = true;
config.enterMode = CKEDITOR.ENTER_BR;
config.fullPage = true;
config.resize_dir = 'vertical';
}
but when CKE appears its cke_1_contents field has like 10 or 15px of height.
Autogrow and resize by dragging arrow in right-bottom corner works, but no default/initial height appears to be set.
Any ideas how to fix that?

I am having exactly the same
I am having exactly the same problem. I only appears if there is no content in the textarea.
As it seems to work on this page, there must be a solution.(Edit: Woops, it's just not used here... Sorry.) Maybe it's caused by another plugin?Same for me too! I tried
Same for me too! I tried these settings, but they have no effect:
CKEDITOR.replace( 'editor1', {
extraPlugins: 'autogrow',
autoGrow_maxHeight: 700,
autoGrow_minHeight: 500,
removePlugins: 'resize'
});
This also failed:
var editor = CKEDITOR.replace('editor1');
editor.config.height = 850;
editor.resize('100%', '850px');
I see that this web page has a CKEditor that works properly, wonder what the secret is?
Found an answer: use a
Found an answer: use a preconfigured build. They all work properly. I am using this per-page configuration:
CKEDITOR.replace( 'editor1', {
height: 500
});
I wonder why the configuration on the CKEditor support pages does not include a provision for marking up code?
Didn't work for me
Well, I HAD a preconfigured build, but it didn't work. So I decided to use "standard" only and add the plugins I need one by one in the hope this would help,
but it didn't.Edit: In fact it does now, so it seems I've "accidentally" found a combination of "standard" bundle and plugins that works for me. The bundled download didn't. So I think it is better to use one of the defaults and add the plugins manually instead of using the "bundler".
CKEDITOR.replace( 'editor1',
CKEDITOR.replace( 'editor1', { extraPlugins: 'autogrow', removePlugins: 'resize', width : 800, autoGrow_minHeight : 700, autoGrow_maxHeight : 1000, autoGrow_onStartup : true, enterMode : CKEDITOR.ENTER_BR, fullPage : true, });Hi, The above has worked for me without any problems. @emo9 I think you have exaggerated with configuration options.
The same setting worked with optimized editor freshly downloaded from CKSource page (For dev or source version cache clearing might be required - Ctrl+F5 may be not enough):
CKEDITOR.editorConfig = function( config ) { // Define changes to default configuration here. For example: // config.language = 'fr'; // config.uiColor = '#AADC6E'; config.extraPlugins= 'autogrow'; config.removePlugins= 'resize'; config.width = 800; config.autogrow_maxHeight = 1000; config.autoGrow_minHeight = 700; config.autoGrow_onStartup = true; config.enterMode = CKEDITOR.ENTER_BR; config.fullPage = true; };