Customising the WordPress TinyMce editor and it’s buttons

I’m trying to cutomise the TinyMce editor within WordPress and I took this code from an older WP site I did, but the buttons I have set don’t seem to be working, for example, this is what I have: add_filter( ‘tiny_mce_before_init’, ‘blm_format_tiny_mce’ ); function blm_format_tiny_mce( $in ) { $in[‘remove_linebreaks’] = true; $in[‘convert_newlines_to_brs’] = false; $in[‘keep_styles’] … Read more

Registering custom TinyMCE buttons, for admin area, to work with custom instances of wp_editor

Thanks to this answer here, I am able to use different instances of wp_editor to determine which buttons each of my differing TinyMCE instances use. However, I’m struggling to actually get my buttons registered – they’re simply not appearing on the TinyMCE interface the way I think they should! I’ve tried two different approaches – … Read more

Bridge WordPress Media API with custom tinyMCE plugin [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 7 years ago. Improve this question In my tinyMCE plugin, I would like to be able to call the WordPress Media manager introduced in WP 3.5. … Read more

Add Shortcode inline inside Gutenberg block

In the legacy (classic editor) it was possible to add buttons to the editor toolbar via tinymce API, that will add shortcode at cursor. seems like this is not supported anymore from the tinymce FQA and this Gutenberg migration guide Seems like it would be possible with the plugin tinymce advanced but I wonder what … Read more

How can the tinyMCE dom be manipulated (offical API does not seem to work)?

Is this possible with a tinymce plugin? I think other ways to access the iframe are not working or not recommended. I have found this And tried that in the printing mce plugin inside the TinyMCE Advanced plugin but it does not work. var $ = tinymce.dom.DomQuery; $(‘p’).attr(‘attr’, ‘value’).addClass(‘class’); I have installed the tinymce advanced … Read more

Shortcode perfomance solution

I have a site that is performance critical. Doing shortcodes I thought about the time the server needs to parse and return the content, instead to allow some HTML (<div class=”redletter”>) to go through the TinyMCE editor. In the meantime, my code for that is: // [redletter]Content[/redletter] add_shortcode(‘redletter’, ‘redletter_do’); function redletter_do($atts, $content = null) { … Read more

TinyMCE Anchor Button not showing

I’m using this filter and function to display a custom, stripped-down version of the TinyMCE editor. Everything works as it should…except the ‘Anchor’ button will not show (‘anchor’)? According to the TinyMCE website (http://www.tinymce.com/wiki.php/Controls), that is the control to use. Does anyone know why the anchor button will not show? EDIT: the code example comes … Read more