TinyMCE 4 - remove() or destroy()

后端 未结 15 723
抹茶落季
抹茶落季 2020-12-25 12:22

I am using TinyMCE editor. I want to remove or destroy tinymce editors (Page contain more then one editor). Also remove classes and IDs added by tinyMCE.

Bu

15条回答
  •  星月不相逢
    2020-12-25 12:51

    You need simply use this code in order to remove all the editable textarea:

    tinyMCE.remove(".editable");

    Here more info about tinyMCE remove: http://archive.tinymce.com/wiki.php/api4:method.tinymce.EditorManager.remove.static

提交回复
热议问题