How to prevent shortcode preview from breaking in tinymce editor?
How to prevent shortcode preview from breaking in tinymce editor?
How to prevent shortcode preview from breaking in tinymce editor?
Adding a colorbutton in tinymce dialog with current api
Add a select option of shortcodes like dropdown in tinymce
TinyMCE custom plugin, how to make a word automatically selected based on current cursor position?
Asynchronously render shortcodes in TinyMCE visual editor
WP Editor Issue in Backend
After few days I got it to work. Gotta check those core files, now I know how. Anyways, here is the working code: function my_tiny_mce_tweaks( $first_init ) { $first_init[‘formats’] = ‘{‘ . ‘alignleft: [‘ . ‘{selector: “p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li”, styles: {textAlign:”left”}},’ . ‘{selector: “img,table,dl.wp-caption”, classes: “alignleft”}’ . ‘],’ . ‘aligncenter: [‘ . ‘{selector: “p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li”, styles: {textAlign:”center”}},’ . … Read more
Try type: ‘listbox’, values: [{text: ‘small’}, {text: ‘normal’}, {text: ‘large’}] For details: https://github.com/tinymce/tinymce/blob/master/js/tinymce/plugins/link/plugin.js I met the same problem when I want to use select2 in the dialog. All plugins are using listbox. My guess is they always use listbox instead of selectbox. And the handler for selectbox is broken.
Just add this code to functions.php of your theme and then “View” –> “Show blocks” will always be enabled immediately when the page loads if( !function_exists(‘custom_settings_tinymce’) ){ function custom_settings_tinymce($init) { $init[‘visualblocks_default_state’] = true; return $init; } add_filter(‘tiny_mce_before_init’, ‘custom_settings_tinymce’ ); }
Something like this looks ot be what you are after http://wordpress.org/extend/plugins/rich-text-tags/