Tag Info

Hot answers tagged

2

I have just spent 24 hours attempting the same implementation, but with a more elaborate styled preview of results. Basically like a layout builder using shortcodes. Wish I would have found this post earlier cause it lays the groundwork for the first objective (using TinyMCE for point & click selection of shortcode attributes): The second part of your ...


1

Use wp_editor(). There are many configuration options; you have to read the source to get all of them. Example: $editor_settings = array ( 'textarea_rows' => 15, 'media_buttons' => FALSE, 'teeny' => TRUE, 'tinymce' => TRUE, 'dfw' => FALSE, ); $content = $get_option( 'your_option_name' ); ...


1

This is was I use to convert textarea with wp_editor() wp_editor($value, "editor-name", array( 'tinymce' => array( 'theme_advanced_buttons1' => 'bold,italic,underline', 'theme_advanced_buttons2' => '', 'theme_advanced_buttons3' => '' ) ));



Only top voted, non community-wiki answers of a minimum length are eligible