How to get the content of a Tinymce textarea with JavaScript

后端 未结 10 2117
忘掉有多难
忘掉有多难 2020-12-02 20:08

i have an array of content then how we get content of Tinymce textarea in javascript

10条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-02 20:29

    This work for me for version 4 (9.8):

    var Content = tinyMCE.editors['Your_ID'].getContent();
    

提交回复
热议问题