CKEditor instance in a jQuery dialog

后端 未结 11 1310
-上瘾入骨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:48

    I used a callback function with the "show:" option to delay instantiating CKEditor until after the "show" animation was complete. I found that as little as 50 milliseconds will do the trick.

    modal: true,
    show: {
        effect: "drop",
        complete: function() {
            setTimeout(function(){
                $( "#selector" ).ckeditor();
            },50);
        }
    },
    hide: "drop",
    

    Hope this helps.

提交回复
热议问题