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]
- Does the functions.php file ever get called during an AJAX call? Debug AJAX
- How important is it to enqueue a theme’s stylesheet?
- pass object/JSON to wp_localize_script
- Enqueue a stylesheet for login page and make it appear in head element
- Generating CSS Files Dynamically Using PHP Scripts?
- Enqueue Stylesheets After Theme’s “rtl.css”
- Understanding wp_add_inline_style
- Hide a div that is part of all pages on one specific page
- Why I can’t add a CSS style in this WordPress theme?
- Can’t get staging site to display same way as live site. Completely stumped
- How to make a theme with more than one CSS file?
- Editing the custom background CSS
- Is there a way to set the order of wp_footer hooked functions?
- How to edit an existing WordPress theme? [closed]
- use add_action(‘wp_head’) in a widget for generating dynamic CSS styles
- Modifying JS files in Child-theme
- Adding dashicon fonts to the admin of pre 3.8 installs
- Convert a static website to a WordPress theme and import all existing content
- Custom CSS In Uploads Folder
- Root Sage theme styles are not working!
- Modify the Additional CSS section (adding a disclaimer)
- How to configure wordpress to work with Vuejs with SSR and without hashbang
- Sub folder CSS that’s read by Admin panel
- How to hook CSS file according to theme selection in the customizer section
- Custom CSS without css.php file
- Dequeue a style file which is making website load slow!
- Do I need normalize.css when developing my own WordPress-theme?
- How to float an image in Gutenberg
- Media Uploader in custom path
- jQuery not available to other scripts
- Multiple TinyMCE Editors in one Admin Page
- Using PIE CSS in WordPress. “localizing” styles
- Which html elements should be styled in wordpress theme
- How to override checkbox styles if these inputs have a unique id [closed]
- Theme Javascript.php Overwritten Nightly [closed]
- WordPress Unite Theme: Footer isn’t sticking [closed]
- 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
- Combining CSS files into a single cached one
- Using page-id-{ID} from body_class() in local dev, versus live staging
- 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?
- Ideal inline dynamic CSS injection
- JQuery undefined and Stylesheet loads in bottom along with js files
- theme style is applied on the dhasboard rather than the website
- SVG in list-style-image breaks when adding fill
- CSS added through customizer neglects the need of a child theme?
- 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?
- How to create a WP theme that use BootStrap? [closed]
- .current_page_ancestor broken in Twenty Eleven
- 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
- wordpress script_loader_tag in function.php
- How do I change the color of individual page titles in WordPress?
- Find the source file causing a Mixed Content warning
- How to reduce the vertical space above and below a ul list uniformly with one command?
- Ajax Comment Upvotes – Votes don’t always register
- Is there a way to add classes to a page when using a Gutenberg reusable block as page layout?
- change background image on scroll
- How can I fix my theme header for my CSS stylesheet?
- Text View (Code View) in WordPress Customizer TinyMCE Editor
- WordPress doesn’t load css, image and js files after moving local installation folder
- Load multiple css simultaneously using functions.php
- Necessary css classes to be included in theme stylesheet
- Customizer Image-Picker Preview Not Working
- Does any JavaScript file load automatically for index.php file?
- Images use & location, on new wordpress theme
- Mobile view logo background colour in wordpress
- WordPress Customization API overwrite LESS variable
- Flexslider not working for my custom theme WordPress
- Can’t attach Javascript to theme
- Paginated WP_Query doesn’t return 404’s, even when posts don’t exist
- Alternating CSS classes for dynamic content [closed]
- How to convert that page to a wordpress template? [closed]
- wp_enqueue_script causes page to vanish
- How do I middle-align my header menu items in WordPress [closed]
- can’t add EVENT LISTENER to a element
- How customizable is a self-hosted WordPress blog compared to a Blogger blog?
- Detect custom font size
- HTML to WORDPRESS [closed]
- jQuery Snippet Not Working on WordPress Site [closed]
- Image and font support missing in editor when deploying theme remotely