How can I adjust the height in CKEditor?
Here is my code for CKEditor.
<script type="text/javascript">
CKEDITOR.replace( 'content',
{
toolbar :
[
['Source'],
['Bold','Italic','Underline','Strike'],
]
});
</script>
Add the height and width setting in the parameters:
CKEDITOR.replace( 'content',
{
toolbar :
[
['Source'],
['Bold','Italic','Underline','Strike'],
],
height: 300,
width: 400
});
Go to confi.js file and in the
CKEDITOR.editorConfig = function( config ) {
.
.
.
.
**config.height = 320;**
};
So actually you just need to add config.height = required height;
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With