How to get tinymce content in jquery?

前端 未结 2 1298
悲&欢浪女
悲&欢浪女 2021-02-09 11:49

i am trying to get tinymce data but getting tinyMCE undefined error. Here is my code:

function savePost( ){ 

    console.log(  jQuery(\'#wp_tinymce_editor\')         


        
2条回答
  •  醉话见心
    2021-02-09 12:26

    
    

    and in jquery, you can do like this.

    var content = tinymce.get("texteditor").getContent();
    

提交回复
热议问题