Francisco Labanca Francisco Labanca - 1 year ago 209
HTML Question

CKEDITOR resize not working

I'm currently using ckeditor on my website and I want it to have a specific heigth. I tried to use

but it's not working.

I want to disable the clickable resize function also, but the heigth is not modified whenever I disable the resize function or not.

My question would be how do I set a specific heigth for my CKEDITOR then?

Edit: html and script

<div id="textContent">
<textarea id="inputPara" rows="33" cols="84" autocomplete="off" placeholder="Respuesta, explicaciĆ³n..."></textarea>
<script type="text/javascript">
var editor = CKEDITOR.replace('inputPara');
editor.resize('100%', '500px', true);


Answer Source
try this example

<!DOCTYPE html>

    <meta charset="utf-8">
    <meta name="robots" content="noindex, nofollow">
    <title>Setting editor size</title>
    <script src=""></script>


    <textarea cols="80" id="editor1" name="editor1" rows="10" >&lt;p&gt;This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href=""&gt;CKEditor&lt;/a&gt;.&lt;/p&gt;

        CKEDITOR.replace( 'editor1', {
            width: '70%',
            height: 500
        } );

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download