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

Use shortcodes in custom metabox using wp_editor?

Figured it out: $team_information_value = get_post_meta( get_the_ID(), ‘team_information’, true ); // Checks and displays the retrieved value if( !empty( $team_information_value ) ) { echo do_shortcode($team_information_value); } else { echo ‘Value Not Fount or Empty’; } Put the displayed value (in this case $team_information_value) within a do_shortcode();

Stop WordPress Visual Editor converting backticks into code blocks

This has solved the problem, simply remove the plugin which automatically formats text as you type, from loading in the first place. add_filter( ‘tiny_mce_plugins’, ‘rwebster_editor_remove_wptextpattern’, 1, 99 ); function rwebster_editor_remove_wptextpattern( $plugins ) { $wptextpattern = array_search( ‘wptextpattern’, $plugins ); unset( $plugins[$wptextpattern] ); return $plugins; }

wp.editor.initialize does not show the same default toolbar

Please Add this code for same layout for wp wp.editor.initialize(editor_id,{ tinymce: { wpautop: true, plugins : ‘charmap colorpicker hr lists paste tabfocus textcolor fullscreen wordpress wpautoresize wpeditimage wpemoji wpgallery wplink wptextpattern’, toolbar1: ‘formatselect,bold,italic,bullist,numlist,blockquote,alignleft,aligncenter,alignright,link,wp_more,spellchecker,fullscreen,wp_adv,listbuttons’, toolbar2: ‘styleselect,strikethrough,hr,forecolor,pastetext,removeformat,charmap,outdent,indent,undo,redo,wp_help’, textarea_rows : 20 }, quicktags: {buttons: ‘strong,em,link,block,del,ins,img,ul,ol,li,code,more,close’}, mediaButtons: false, });

wp.editor.initialize does nothing

This was way simpler than I thought it was – even on post.php, you need to run wp_enqueue_editor() before using wp.editor in JavaScript. I had assumed that I wouldn’t need to do that, because an editor was already loaded.

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