TinyMCE & Fancybox - editor won't work on second view

后端 未结 6 600
夕颜
夕颜 2020-12-03 16:36

I\'ve added TinyMCE to my project, and am using it on a text area which pops up in a fancybox. The first time I action it, it works fine, but if I then close it and try to

6条回答
  •  猫巷女王i
    2020-12-03 16:42

    I'm using fancybox 2.0

    $("#notesbtn").fancybox({ 
        beforeShow: function () { tinymce.execCommand('mceToggleEditor', false, 'elm1'); },
        beforeClose: function () { tinymce.EditorManager.execCommand('mceRemoveControl', true, 'elm1'); }
    });
    

提交回复
热议问题