Having a lot of difficulty getting add_editor_style() to load into source code

You shouldn’t call add_editor_style() directly in your functions.php file. Instead, you should wait until the plugins and themes have been loaded: add_action( ‘after_setup_theme’, ‘add_editor_style’ ); If you already have a function hooked to after_setup_theme, you can call add_editor_style() inside there instead. You then need create a file called editor-style.css and place it in your theme … Read more

Dynamically textarea with TinyMce editor

Add this function to you JavaScript: function textarea_to_tinymce(id){ if ( typeof( tinyMCE ) == “object” && typeof( tinyMCE.execCommand ) == “function” ) { tinyMCE.execCommand(‘mceAddControl’, false, id); } } then when you create the textarea dynamically call it and pass the textarea’s id to it. Just make sure TinyMCE is loaded on that page before or … Read more