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 : true, expand : false, block_expand: true, deep : true }];
return mceInit;
} );
} )( jQuery );
</script>
<?php
} );
Related Posts:
- Remove headings option from Wysiwyg editor from ACF in a certain custom post type
- ACF Wysiwyg Editor Image srcset for responsive images [closed]
- Advanced Custom Fields plugin : displaying a field while omitting the p tags
- Equation input with preview in classic editor
- How can I stop TinyMCE from converting my HTML entities to characters?
- Apply custom style to single word in WordPress
- wordpress REST-API upload image to ACF
- How to add a custom field to quick edit
- Gutenberg First Block on Page Conditional?
- Comparing arrays with meta_query in pre_get_posts
- How to order by just the Time Field in Advanced Custom Fields
- Using Gutenberg parse_blocks Function With ACF Custom Blocks?
- Using main style.css with add_editor_style
- Get specific repeater row (via advanced custom fields) based on Meta Query with Wildcards [closed]
- How to update custom taxonomy meta using ACF update_field() function or any other wordpress function
- Thumbnails generated from PDF in the “Media” section – how to show them in theme template?
- How to count ACF Flexible Content Rows?
- Query between dates using date picker filter breaks in WordPress 4.2.1
- When adding buttons to the tinyMCE editor, how do I make them wrap to the next line and/or display in the “Kitchen Sink” area?
- Get ACF value after update user using save_post
- random p tag in advanced custom fields?
- How can I track and output when a field is updated? (currently using Advanced Custom Fields)
- How to write PHP array to render JSON-LD Markup for Job Postings, with ACF
- WordPress Admin Not Loading All Core Scripts
- Add up values from ACF number field
- Advanced Custom Fields: Conditional Statement with Select
- Add PDF to ACF image field from file url
- Bulk-Update Custom Posts
- Group ACF repeater fields from differrent posts
- How to get custom fields in a post when published
- Get all custom fields with wp’s get_posts()
- Add a select option of shortcodes like dropdown in tinymce
- How to populate a parent page with its child subpages and associated templates
- Find the first occurrence of a custom field
- ACF Add fields values to newly inserted post [closed]
- Tiny MCE doesn’t look anything like my blog
- Programatically re-order images in the ACF gallery add-on. Orderby Title, ID, etc
- ACF Relationship – Limit to specific pages
- Website goes down while importing backup (Internal server 500)
- Display total unique custon field results
- Advanced custom fields – pulling data in from another page
- ACF: If field contain a specific value, update value in another field programatically
- how to load random related posts with specific custom fields?
- Displaying user data within ACF relational field (user type)
- ACF Image field not displaying in WordPress with Visual Composer [closed]
- How to add custom tinymce plugin to new text widget
- How to acquire an ACF image using get_previous_post and get_next_post
- ACF checkbox array is returning numbers, not labels [closed]
- Building large multi-section pages with Advanced Custom Fields
- Showing a post depending on the Custom Field value
- Advanced Custom Fields – category image
- Tiny MCE custom styles, and preview in the backend
- Widget Code / Advanced Custom Fields / Elementor
- How can I apply an ACF field to a single custom post if it refers to the taxomy of that post type in the rules?
- Getting “Years Only ” from ACF Date Picker field to Hidden filed in the fields group
- How to apply padding to TinyMCE editor?
- How to show related post having same relationship filed under single CPT?
- Trying to update repeater field (ACF) dynamically with data from Contact Forms 7
- Update field for repeater not working
- How can i add service category here? [duplicate]
- Get title color from category custom field
- WP Cron Working, but Function Not Working
- How to get a product’s Custom Fields in a different template file?
- pre_get_posts hook not targeting search results page query
- ACF – get custom taxonomy term image field
- Populating ACF Image Fields from JSON file
- ACF group field disappeared after deployment using deployer script
- ACF Dynamic select not showing data
- Field has disappeared on post page
- Modification of RSS feed is not consistent
- Display posts every specific day
- How to use WP Backery on Wysiwyg ACF
- Looking for a javascript callback action to re-initiate a custom slideshow in gutenberg
- Hide Menu Items from guess user with ACF
- Advanced Custom Fields Gallery and Flex Slider [closed]
- Help using an array in ‘exclude’ key of another array
- Display custom image field in user profile
- Build table using Advanced Custom Fields
- Front page showing ACF only once, is that solvable to show the ACF per post? [closed]
- Add column and acf field content for cpt
- Can’t get ACF repeater data in category template
- ACF scheduled repeater fields
- Get the category fields even if there is no post
- Advanced Custom Fields Show After Password [closed]
- Displays a string of linked images
- TinyMCE 4.0: specifying buttons to display [duplicate]
- Customize TinyMCE Buttons
- use advance custom field inside query post command [closed]
- Multiple loop issue – pull one featured and then continue the loop
- WYSIWYG with HTML source?
- Check if meta_key exists in wp_list_pages
- ACF + WPML: How to translate date fields?
- Using ACF custom field for custom post type to order categories
- PHP calls to custom fields not being made. Query seems to be blocking them
- How to indicate a parent child category relationship when bulk importing
- Get ACF time in His format
- Filtering custom post admin listing page elements based on acf user field
- Parsing value from Lottie JSON file
- How do I add an ACF shortcode to a non-ACF page?
- Convert acf/gutenberg markup to html