setContent of an textarea with tinyMCE

后端 未结 8 1892
无人及你
无人及你 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:08

    $('#title').html(selected_article_title);
    

    Make sure that selected_article_title does not contain any html tags.

提交回复
热议问题