How to set the initial text in a TinyMCE textarea?

前端 未结 9 515
慢半拍i
慢半拍i 2021-01-02 07:31

I\'m in a curious situation where I previously had no problem achieving what I\'m looking for. The following code is a part of an HTML page which is to host a TinyMCE rich t

9条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-02 07:53

    To change an specific tinymce field, you can do this:

    tinyMCE.get('editing_field').setContent('your default text');
    

提交回复
热议问题