Seems the question was asked at community.tinymce.com and the answer is here:
https://community.tinymce.com/communityQuestion?id=90661000000IiyjAAC
You can’t make the style you’ve defined remove any previous classes, but what you can do is ‘apply’ the style again by selecting it from the dropdown list and it will be removed – i.e. the class will be removed from the tag. You can then choose a different style from the drop-down list and the class relevant to that style will be added to the tag.
Related Posts:
- “options.php” not found
- How to add next height number in Order Attributes inside the Add new page. [duplicate]
- Setcookie not setting cookies anywhere except admin
- Adding fields to the “Add New User” screen in the dashboard
- Issues with title-tag and document_title_parts
- Is it ok to use a function to output the text domain name in a wordpress theme
- Displaying the number of updates available in the Admin area
- What’s the difference between admin_url() and get_admin_url() functions?
- How to override admin-bar style
- How do I create a new WP admin color scheme?
- wp-admin page is blank
- Organize functions.php
- Overriding core functions in child theme
- TinyMCE custom stylesheets for different post types
- Replacing select2 in admin backend for all selects
- difference between add_object_page and add_menu_page
- How to fix a theme with page.php Default Template that accidentally deleted?
- Target a certain page within wordpress backend (admin) i.e. Pages > About
- Change parent theme file function in child themes functions.php
- Dequeue Scripts and Style for Mobile not working?
- Displaying Widgets
- Dequeue script in template isn’t working
- How to add a column to the Trash page?
- How to change menu icon which is overriden (i.e. by WooCommerce) [closed]
- Changing itemprop from logo to image on custom logo?
- Best Practice for Syncing Local Development With Staging Development [closed]
- Overwrite Parent Theme add_image_size in Child Theme
- Show excerpt for only first post in query
- how do you create an admin interface in plugin for your theme
- How to add css class to image attached in all the posts?
- How to call custom function from functions.php in site-wide template files?
- Is there a way to add a class to non current menu item?
- When using wp_enqueue_script(); in a theme why don’t we use add_action?
- Removing the main link to Jetpack from the menu
- How to use Internationalized human_time_diff() function in Chinese?
- Tiny MCE-modifications (plugins) stopped working in WordPress 5.6
- How to enable template page only for a post id page
- Selective Product Category for Carousel
- Add caption functionality to custom WordPress theme
- Best practices regarding the creation of custom widgets?
- How to force field validation first, then its values saved durning edit profile?
- WordPress menu link doesn’t work properly
- Move ‘current-menu-item’ class on #adminmenu li from Posts to Pages for Taxonomy Edit Screen
- Search filter by Post title OR Meta Title Value [duplicate]
- How to auto refresh when user change postcode
- admin-ajax.php + load-scripts.php hanging for minutes
- How to install Segment on WordPress without a plugin
- enqueue styles for only mobile wp
- Get First Child Page ID or Permalink in WordPress Admin
- Unique sequential reservation code
- Adding a colorbutton in tinymce dialog with current api
- Creating A New Admin Menu Tab For Theme Options
- wp-admin won’t load after setting wp-login custom url
- How to customize the_archive_title()? Cannot figure out how to change the value it produces [duplicate]
- Remove “Published On” inside wp-admin
- Where do i create my own function in wp-admin
- What is the text that appears beside the page titles in the list of pages in the WP admin?
- Control the srcset much more (not all sizes in it each time)
- Remove Custuomize Sections
- Some questions about how proper add 2 CSS file in a WordPress theme?
- Functions php shortcode for displaying main menu with no child items
- Update to functions.php not showing in dashboard
- WordPress wraps span tags into p tags
- WP Customizer API loaded into functions.php
- Custom styles in Tiny MCE with an external CSS file
- Add element to widgetpage
- call_user_func_array() expects parameter 1 to be a valid callback, function
- why can’t i add front.css to my frontpage.php
- Best way to disable sidebars on posts (only)?
- contact form in template with jquery,validate and ajax
- Why a SlideShow (made using JQuery FlexSlider) can’t work if I load it form functions.php but work if I load it from my footer.php file? [closed]
- Why I can’t load my JavaScripts using an hook inside my functions.php file?
- Woocommerce Variable Product Dropdown for Custom Shop Template
- Exclude specific post from query
- Advanced method to control cache of enqueued style/script
- Is_Page doesnt detect my page
- Test CDN link from function.php or wp_enqueue_script/style?
- How to customize archive widget only for cpt?
- Why does echo on functions.php not yield result in source code?
- Classic TinyMCE messing up only Contributor’s HTML
- Add meta data in head from theme
- what is `get_section()` and how to use it?
- WP Enqueue Script Error
- DISABLE wordpress upgrade page
- Remove External Links from WordPress posts Using add_filter() in Theme functions.php
- How to retrieve image IDs from shortcode content?
- Class::$template_dir_path=get_template_directory();
- admin-ajax.php & my wp-admin folder url showing in header
- TinyMCE Multiple Custom Classes Selections
- Language switcher for subdomains
- Quicktags external functions file
- wp_nav_walker that interacts with widgets to setup mega menu
- Why does my visual post editor break when I try to add a TinyMCE button?
- Unregistering custom tinymce plugin?
- Allow tags and attributes in post and pages content
- Add custom css to theme
- Why functions metaboxes is causing White Screen in Admin [closed]
- Getting error on function.php
- Changed functions.php file and now site is blank [closed]
- Change TinyMCE undeline outpout