tinyMCEPreInit editor-style.css

Posted in: Newspaper
Post count: 7

Hi folks.
For some reason the editor-style.css in main theme (or child theme, I’ve tried) are not applied even though they are loaded fine in the tinyMCEPreInit.
For example the sidebar image is not loaded.

Any ideas?

Post count: 22421

Hello,
The editor style.css affects the back-end of your website. If this does not load for some reason, it could probably be a plugin that conflicts with it. Please try to disable all your plugins except visual composer and clear your cache. (also reset cdn files if you use it).
Let us know if the problem is still there afterwards.
Thank you!

Post count: 7

Thanks Bogdan,
Found it, but took a while, was my attempt at removing the wpemoji and forgetting the callback function;


// Callback function
function disable_emojicons_tinymce( $plugins ) {
if ( is_array( $plugins ) ) {
return array_diff( $plugins, array( 'wpemoji' ) );
} else {
return array();
}
}
// Clean Emoji
add_action( 'init', 'disable_wp_emojicons' );
function disable_wp_emojicons() {

// all actions related to emojis
remove_action( 'admin_print_styles', 'print_emoji_styles' );
remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
remove_action( 'wp_print_styles', 'print_emoji_styles' );
remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' );
remove_filter( 'the_content_feed', 'wp_staticize_emoji' );
remove_filter( 'comment_text_rss', 'wp_staticize_emoji' );

// filter to remove TinyMCE emojis
add_filter( 'tiny_mce_plugins', 'disable_emojicons_tinymce' );
}

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.