TommyQu / TommyQuBlog

Personal Blog
1 stars 0 forks source link

Get CKEditor content #1

Closed TommyQu closed 8 years ago

TommyQu commented 8 years ago

Solve the problem by below code:

var editor = CKEDITOR.replace( "content", {
        uiColor: "#F5F5F5",
        extraPlugins: 'autogrow',
        autoGrow_minHeight: 200,
        autoGrow_maxHeight: 600,
        autoGrow_bottomSpace: 50,
        removePlugins: 'resize'
});
var content = editor.getData();