Our shortcode dropdown box in Tinymce is not working in WordPress 3.9?

I’ve been stuggeling with a similar issue. (button not appearing in mce editor toolbar). This pattern worked for me in WP 3.9 / tinymce 4.0: tinymce.PluginManager.add( ‘thing’ , function( editor ){ editor.addButton(‘thing’, { type: ‘listbox’, text: ‘My listbox’, onselect: function(e) { // do things… }, values: [ {text: ‘Menu item 1’, value: ‘Some text 1’}, … Read more

How to remove the statusbar from the default wordpress editor?

This ended up working for me, uses the tinyMCE init filter to remove the ‘statusbar’ entirely. /** Edit TinyMCE **/ function myformatTinyMCE($in) { $in[‘statusbar’] = false; return $in; } add_filter(‘tiny_mce_before_init’, ‘myformatTinyMCE’ ); Even with CSS, I couldn’t find a way to definitely remove the path but keep the status bar – here’s the CSS option: … Read more

Make Textarea a TinyMCE (editor box)

You need to use wp_editor() $old_description = get_post_meta($post->ID, ‘sdm_description’, true); $editor_id = ‘sdm_description’; $settings = array( ‘media_buttons’ => false ); wp_editor( $old_description , $editor_id, $settings );

Add table button in editor without Plugin

i use this custom button for ad’s in TinyMCE, i use JavaScript code to add/develop this one look into this code: jQuery(document).ready(function ($) { tinymce.create(‘tinymce.plugins.wpse72394_plugin’, { init: function (ed, url) { // Register command for when button is clicked ed.addCommand(‘wpse72394_insert_shortcode’, function () { selected = tinyMCE.activeEditor.selection.getContent(); if (selected) { //If text is selected when button … Read more

How to disable formatting

Please use this code in your functions.php function tinymce_paste_as_text( $init ) { $init[‘paste_as_text’] = true; return $init; } add_filter(‘tiny_mce_before_init’, ‘tinymce_paste_as_text’); For details please follow link : This will paste copied text in plain format

Add Wrapper with Class to WYSIWYG Editor

Here’s the approach that I use. I add a single class (typically .entry-content) to the WP Editor on the back end as well as to the wrapper element when I output content on the front end. style.css .entry-content h2 { color: purple; } /* etc … */ I’m also using add_editor_style() to load my theme’s … Read more

Limit Block format tags in WordPress wp_editor

You need to add formatselect in one of the toolbars, and WordPress by default have it in toolbar1: wp_editor( $content, ‘fm_display_callback’, array( … ‘tinymce’ => array( ‘toolbar1’ => ‘formatselect,bold,italic,…’, … ), ) ); Check this and https://www.tiny.cloud/docs-4x/configure/content-formatting/#block_formats.