How to set the initial text in a TinyMCE textarea?

前端 未结 9 598
慢半拍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 08:01

    set in tinyMCE.init -

    init_instance_callback: function (editor) {
                    AFunction();
                }
    
    function AFunction(){
    //your code here
    tinyMCE.get('youtinytextareaname').setContent("your text here");
    }
    

提交回复
热议问题