TinyMCE 4 - remove() or destroy()

后端 未结 15 726
抹茶落季
抹茶落季 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:47

    You need an editor id (which usually equals your editor html root elements id (in most cases a textarea)).

    Example:

    tinymce.execCommand('mceRemoveControl', true, 'my_original_textarea_id');
    

提交回复
热议问题