How can i close CKEditor or tinyMCE on a click outside of the editor?

后端 未结 3 607
孤独总比滥情好
孤独总比滥情好 2021-01-14 12:55

I have text widgets that can be added on the page. A click should activate the div into a wysiwyg editor. A click anywhere outside of the editor should destroy the editor wi

3条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-14 13:17

    This is the code you would need to place on a button onclick action to close CKEditor

    CKEDITOR.instances.editor1.destroy();
    

提交回复
热议问题