/ Published in: JavaScript
Creating ckeditor, setting its height and configuring its maximum width.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$("#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();