Get CKEditor content? - jQuery

前端 未结 1 587

My CKEditor code is

window.onload = function()
{
    var editor = CKEDITOR.replace( \\\'big_info\\\' );
    CKEDITOR.config.height = \\\'330px\\\';
    CKEDITOR.         


        
相关标签:
1条回答
  • 2021-02-06 02:08

    This is explained in the integration Guide

    var editor_data = CKEDITOR.instances.big_info.getData();
    

    You can use also the jQuery integration as explained in the CKEditor blog and jQuery integration docs

    // Get the editor data.
    var data = $( 'textarea.editor' ).val();
    // Set the editor data.
    $( 'textarea.editor' ).val( 'my new content' );
    
    0 讨论(0)
提交回复
热议问题