I’m not sure if this question is still relevant or not (so I’m posting for future reference for people), but there is a way to define a css file for the TinyMCE editor in your plugin by using the mce_css
filter. For a quick example, I’ll take an excerpt from the WordPress documentation:
function plugin_mce_css( $mce_css ) {
if ( ! empty( $mce_css ) )
$mce_css .= ',';
$mce_css .= plugins_url( 'editor.css', __FILE__ );
return $mce_css;
}
add_filter( 'mce_css', 'plugin_mce_css' );
For reference on this filter, you can check out these pages:
Related Posts:
- Solutions for generating dynamic javascript / CSS
- Whats the safest way to output custom JavaScript and Css code entered by the admin in the Theme Settings?
- How to add material design css in wordpress and woocommerce
- How to get javascript slider to work! [closed]
- How to i style the elements from the TinyMCE
- How can I wrap all blog posts image with
- White screen when attaching css to function.php
- WordPress theme resource won’t load over VPN
- theme-independent CSS/JS files
- Tiny MCE custom styles, and preview in the backend
- How to reuse parts of WordPress site e.g. header, footer, part of header for multiple WordPress sites?
- What is The Best Way to Make Parallax header effect for wordpress theme ?? pure CSS or using JavaScript? [closed]
- Theme Loading Into Dashboard
- What are the Entry classes for?
- Single page site with history.js
- Multiple TinyMCE Editors in one Admin Page
- Using PIE CSS in WordPress. “localizing” styles
- How to edit my theme for full width?
- How to check if a WordPress core block is active in sidebar
- Which html elements should be styled in wordpress theme
- How to override checkbox styles if these inputs have a unique id [closed]
- How to add styles set by user in the customizer
- Use second time navigation.js in underscores [closed]
- Font Awesome 5 Free – far working but fas is not? [closed]
- Theme Javascript.php Overwritten Nightly [closed]
- How remove render blocking css from wordpress when you build a theme?
- Why doesn’t my css work when I check my theme on mobile devices? [closed]
- How to: JQuery multiple wordpress media uploader buttons in the same options page?
- WordPress Unite Theme: Footer isn’t sticking [closed]
- Following Web Performance Optimization techniques to output static and dynamic css
- How to disable wordpress from overload my stylesheet styles with customizer styles
- HTML added to editor when deleting shortcodes in Chrome browser
- Theme Customizer not loading JS for live preview
- How can I add custom text styles to the visual text editor?
- Displaying icon image for WordPress post formats, is there a cleaner way to do this?
- What is the meaning of WordPress’s recommended css classes and where are they applied?
- Internal Stylesheet in WordPress Theme development
- Combining CSS files into a single cached one
- Redirect to another page using contact form 7? [closed]
- Using page-id-{ID} from body_class() in local dev, versus live staging
- My jQuery is enqueued properly. So why isn’t it working?
- Enqueued JavaScript is not working
- How to change footer or for different kinds of users in wordpress?
- How do I remove inline style in featured image markup?
- different way to achive stylesheet_url
- How do I use a color from theme options?
- Custom image size vs CSS sizing
- Why is my CSS not loading?
- How to rotate every letter in a title
- Ideal inline dynamic CSS injection
- Theming Using Bootstrap Glyphicons and WordPress Dashicons
- How to register and enqueue JavaScript files without breaking plugin dependencies?
- Broken theme, template is missing
- wp_enqueue_script not working?
- JQuery undefined and Stylesheet loads in bottom along with js files
- Having issue with WordPress wp_enqueue_style
- Insert Rich Text Editor in theme?
- How do I use wp_nav_menu?
- theme style is applied on the dhasboard rather than the website
- Assign custom classes to the divs inside the loop
- SVG in list-style-image breaks when adding fill
- pass wordpress template directory into ajax url call
- How to style bootstrap container in wordpress theme?
- CSS added through customizer neglects the need of a child theme?
- How to override template files in parent theme?
- Javascript development in Custom Themes
- Custom styles in Tiny MCE with an external CSS file
- tiny_mce_before_init: ‘exact’ => true has no effect
- LESS not working in WordPress [closed]
- Place title (in correct place) above image with opaque background [closed]
- A post with a clear:both in its css destroy the theme design, and the sidebar is moved to the bottom
- multiple html/css files for wordpress theme?
- CSS preprocessor file messed up after compiled
- add jquery file if a certain page is included
- Customize Option Framework
- Why I obtain different visualization when I run the website on my local machine and on remote server?
- Some doubts about WordPress handle the horizontal main menu visualization
- How to create a WP theme that use BootStrap? [closed]
- Can’t change theme name
- my single.php is mixup on some post for no reason
- How to use the _S framework
- header, stylesheet not being read
- How to format the first line of a post differently?
- .current_page_ancestor broken in Twenty Eleven
- enqueuing external and internal js and css in wordpress did not work with owl.js animate.css
- WordPress Animation Adjustments
- Is there a list of default generated Gutenberg block CSS? Unable to align video blocks
- getBoundingClientRect() showing different values on load vs scroll
- style variations hurt the editing performance
- wordpress script_loader_tag in function.php
- How to create a robust and logic class naming system in WordPress theme developing?
- How to diagnose wp-env environment problem
- Why nav_menu_css_class doesn’t work with apply_filters?
- How do I change the color of individual page titles in WordPress?
- 3 Level Menu Navigation (3rd Level not displaying)
- Default customizer colors aren’t displayed outside of the preview
- Find the source file causing a Mixed Content warning
- How to enqueue scripts properly with ES6 webpack?
- How to reduce the vertical space above and below a ul list uniformly with one command?
- register dependency css and js inside a plugin class