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
You have to wait until the editor is initialized:
tinymce.init({ selector:'textarea', init_instance_callback : function(editor) { editor.setContent('custom'); } });