CKEditor instance in a jQuery dialog

后端 未结 11 1290
-上瘾入骨i
-上瘾入骨i 2021-01-03 01:03

I am using jQuery to open a dialog window with a textarea transformed into an instance of CKEditor. I\'m using the jQuery adapter provided by the CKEditor team but when the

11条回答
  •  失恋的感觉
    2021-01-03 01:29

    $('.analyse_cell').click(function(){
        $('#ad_div').dialog({
            modal: true,
            resizable: false,
            draggable: false,
            position: ['center','center'],
            width: 600,
            height: 500,
            hide: 'slide',
            show: 'slide',
            closeOnEscape: true,
            autoOpen: false,
            open: function(event,ui) {
                $('#ad_content').ckeditor();
            },
            close: function(event,ui) {
                CKEDITOR.remove($("#ad_content").ckeditorGet());
            }
        });
    });
    

提交回复
热议问题