Return to Snippet

Revision: 53187
at November 15, 2011 21:55 by vtoman


Initial Code
$("#currentContent").html("<textarea id='editor'>" + HTMLContent + "</textarea>");

var editor = CKEDITOR.instances['editor'];
if (editor) { editor.destroy(true); }

editor = CKEDITOR.replace('editor',
    {
    height: 400
    });
CKEDITOR.config.resize_maxWidth = $("#editor").parent().width();

Initial URL

                                

Initial Description
Creating ckeditor, setting its height and configuring its maximum width.

Initial Title
Creating ckeditor

Initial Tags

                                

Initial Language
JavaScript