setContent of an textarea with tinyMCE

后端 未结 8 1845
无人及你
无人及你 2020-12-25 14:33

I have some textareas and all of them are with tinyMCE.

I would like to set the content of the specific textarea, but I can\'t find how.

I have tryed this:

8条回答
  •  南方客
    南方客 (楼主)
    2020-12-25 15:27

    For tinymce version 4,

    tinymce.get('title').setContent(selected_article_title);
    

    works just fine - also after initializing the editor.

提交回复
热议问题