Add custom text color WordPress 3.9 TinyMCE 4 Visual editor

Aleksandar Urošević addressed this specific scenario (which is different than adding a button, as you’ve noted). This is the WP 3.9 approach: function mytheme_change_tinymce_colors( $init ) { $default_colours=” “000000”, “Black”, “993300”, “Burnt orange”, “333300”, “Dark olive”, “003300”, “Dark green”, “003366”, “Dark azure”, “000080”, “Navy Blue”, “333399”, “Indigo”, “333333”, “Very dark gray”, “800000”, “Maroon”, “FF6600”, “Orange”, … Read more

Keyup events in tinymce editor not working

You can create a new plugin with the mce_external_plugins filter.. and link it to a js file. Then, in that file you can do your processing. function tinymce_init() { // Hook to tinymce plugins filter add_filter( ‘mce_external_plugins’, ‘tinymce_plugin’ ); } add_filter(‘init’, ‘tinymce_init’); function tinymce_plugin($init) { // We create a new plugin… linked to a js … Read more

How to display shorter version of wp_editor?

You will want to pass some parameters into your $settings array for wp_editor() that only tells it to display the quicktags for strong,em,ul,ol, and link per your screenshot. I didn’t have time to test it, but this code should give you want you want: $settings = array( // Any previous settings you are currently using … Read more

customize tiny MCE blockqute

If it’s for styling purpose, the fastest solution I could think of is by using Javascript. As far as I know, modifying the output of TinyMCE tag would require editing of WordPress core files, so it’s more practical to append a <span> with Javascript. Something like this would do: <script type=”text/javascript> $(‘.post blockquote’).wrapInner(‘<span />’); </script> … Read more

WP as an HTML editor

WordPress is a CMS (Content Management System) and not an editor. That being said WordPress does have a simple WYSIWIG style editor built into it for formatting the content that you want to post.

Placing tags on wordpress visual editor using shortcodes

Assuming you don’t have the shortcode written down… function search_shortcode() { $struct=”<div class=”searchbar” ><div class=”searchbar-inner” >search <input type=”text” id=”search” /><span class=”result-count” ></span></div></div>”; return $struct; } add_shortcode(‘search_box’, ‘search_shortcode’); Make sure your editor is in the ‘HTML’ mode, and paste the shortcode as ‘search_box’. Using a shortcode will allow you to reuse this form anywhere you want.

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