TinyMCE Editor change underline button behavior – u tag instead of span text-decoration underline

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

TinyMCE custom dialog with selectbox not working

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.

TinyMCE Visual Blocks plugin set Show blocks option for all users

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’ ); }

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)