Tinymce 4.2.0 got Cannot read property 'setContent' of null

后端 未结 3 706
逝去的感伤
逝去的感伤 2021-01-20 10:48

I got Cannot read property \'setContent\' of null, when i want to using setContent function. Intended for set value in text editor generated by Tinymce library. Is am wrong

3条回答
  •  孤城傲影
    2021-01-20 11:47

    There is other turn around for your solution:

    Call setContent within $( window ).load(function(){}) but you have initialize jquery first.

    Modified code will look like below:

          
    
    
      
    

提交回复
热议问题