TinyMCE with ajax tabs

前端 未结 5 1866
面向向阳花
面向向阳花 2021-01-16 04:49

I\'m using tabs component of JQuery UI 1.8, and I\'m loading content of tabs via ajax (html content). In one of this tabs I\'m using tinyMCE component, and when I load this

5条回答
  •  广开言路
    2021-01-16 05:22

    You need to shut down your tinymce instances before you switch to another tab else the editor element with that id will be blocked.

    Remove the control before you switch the tab using

    // the_editor_id equals the id of the underliing textarea
    tinyMCE.execCommand('mceRemoveControl', false, the_editor_id);
    

提交回复
热议问题