Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CKEditor & JavaScript - Adjust height and width in CKEditor

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>
like image 400
slum Avatar asked Dec 10 '10 16:12

slum


2 Answers

Add the height and width setting in the parameters:

CKEDITOR.replace( 'content',
    {
        toolbar :
        [
            ['Source'],
            ['Bold','Italic','Underline','Strike'],
        ],
        height: 300,
        width: 400
    });
like image 92
Fred Avatar answered Nov 04 '22 12:11

Fred


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;.

like image 28
Khandad Niazi Avatar answered Nov 04 '22 12:11

Khandad Niazi