TinyMCE’s “Clear Formatting” button doesn’t remove lists and headings

I need to answer my own question here. I was using the attributes from TinyMCE v3, but it needed to use the v4 format. Here’s what works: add_action( ‘acf/input/admin_footer’, function() { ?> <script type=”text/javascript”> ( function( $ ) { acf.add_filter( ‘wysiwyg_tinymce_settings’, function( mceInit, id, field ) { mceInit[‘formats’][‘removeformat’] = [{ selector: ‘h1,h2,h3,h4,h5,h6,ul,li,b,strong,em,i,span,blockquote,pre,code’, remove: ‘all’, split … Read more

Visual Editor only working for the admin user

http://wordpress.org/support/topic/upgraded-to-32-visual-editor-buttons-missing/page/2 this fixed it. The Tiny MCE is looking for a file: wp-includes/js/tinymce/langs/en.js I just checked the file and on my installation the file path is this: wp-includes/js/tinymce/langs/wp-langs-en.js I deleted the ‘wp-langs-‘ part of the file name ‘wp-langs-en.js’ and I seem to be working again.

Dynamic WordPress editor in meta box

The problem is that the wp_editor() automatic load the scripts and this is not possible dynamic. You must enhance your plugin, code and add the scripts also dynamic or via ajax. WP include the scripts and styles via wp_enqueue_script() and this is not usable in a dynamic change of DOM, it was registered for better … Read more

How to add custom page elements to the WYSIWYG editor?

It’s possible to manually add buttons to your editor. https://codex.wordpress.org/TinyMCE_Custom_Buttons The Codex actually links to a full tutorial detailing the process, as well. http://code.tutsplus.com/tutorials/guide-to-creating-your-own-wordpress-editor-buttons–wp-30182 That will guide you through all the steps: Adding shortcodes to your site Creating a TinyMCE plugin (register, set up, create buttons, and add what they should do) Including editor styles … Read more

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