New answers tagged

0

//[nbsp] shortcode function nbsp_shortcode( $atts, $content = null ) { $content = '&nbsp'; return $content; } add_shortcode( 'nbsp', 'nbsp_shortcode' ); Then call it like this: [nbsp] Instead of:   Hat tip to this post on wordpress.org: https://wordpress.org/support/topic/prevent-nbsp-characters-from-getting-removed-by-the-visual-editor


11

We start by adding the custom TinyMCE Button: function add_mce_button_custom_em() { // check user permissions if ( !current_user_can( 'edit_posts' ) && !current_user_can( 'edit_pages' ) ) { return; } // check if WYSIWYG is enabled if ( 'true' == get_user_option( 'rich_editing' ) ) { add_filter( '...


-2

It is possible in a way. Make your own tinymce Plugin and call wpLink.open();.


0

NO we can't open it directly. This is a new update on Wordpress to go to further setting click on this button otherwise you paste link directly


0

WordPress and TinyMCE both recently have been updated to allow you to modify the special characters (charmap) without having to hack the core. You can lookup the symbols you want from https://dev.w3.org/html5/html-author/charref and then either add the following code to your theme's functions.php or make a plugin: add_filter( 'tiny_mce_before_init', '...



Top 50 recent answers are included