New answers tagged

0

There is simple solution for that. You need to check if editor is active then set value of editor otherwise set value of text-area.See bellow code. if(tinyMCE.activeEditor==null) { jQuery("#txtArea").html('your html'); } else{ tinyMCE.get('txtArea').setContent('Your html'); }


0

You can pass an array of settings to the editor instance. For possible values please refer to the tinymce documentation, in your case 'init_instance_callback' might be helpful. https://www.tinymce.com/docs/configure/integration-and-setup/#init_instance_callback wp_editor('', 'sedemoeditor', array( 'tinymce' => array( ...



Top 50 recent answers are included