Hi. I've seen other editor auto-adjust height when users have more text lines than the textarea height.
How can I do it in ckeditor? I create my editor through php and I also tried add/remove resize_enabled or autoGrow_maxHeight but didn't help. It will be nice to have the height auto-adjust instead of scroll-bar.
Please help me out. Thank you.
include("../../ckeditor.php");
$CKEditor = new CKEditor();
$CKEditor->returnOutput = true;
$CKEditor->basePath = '../../';
$CKEditor->config['width'] = 400;
$CKEditor->config['height'] = 60;
$initialValue = '';
$config['toolbar'] = array(
array('SpellChecker', 'Scayt'),
array('Smiley')
);
$config['removePlugins'] = 'elementspath';
$config['skin'] = 'kama';
echo $CKEditor->editor("editor", $initialValue, $config);
How can I do it in ckeditor? I create my editor through php and I also tried add/remove resize_enabled or autoGrow_maxHeight but didn't help. It will be nice to have the height auto-adjust instead of scroll-bar.
Please help me out. Thank you.
include("../../ckeditor.php");
$CKEditor = new CKEditor();
$CKEditor->returnOutput = true;
$CKEditor->basePath = '../../';
$CKEditor->config['width'] = 400;
$CKEditor->config['height'] = 60;
$initialValue = '';
$config['toolbar'] = array(
array('SpellChecker', 'Scayt'),
array('Smiley')
);
$config['removePlugins'] = 'elementspath';
$config['skin'] = 'kama';
echo $CKEditor->editor("editor", $initialValue, $config);
Re: How to make editor auto-adjust height?
// AutoGrow
config.extraPlugins = 'autogrow';
config.autoGrow_maxHeight = '400';
I think you are missing the "extraPlugins" line.
Zachary
Re: How to make editor auto-adjust height?
Documentation Manager, CKSource
See CKEditor 5 docs, CKEditor 4 docs, CKEditor 3 docs, CKFinder 3 docs, CKFinder 2 docs for help.
Visit the new CKEditor SDK for samples showcasing editor features to try out and download!