TinyMCE on frontend style not working

Question

I use TinyMCE advanced on my WordPress website. My logged-in users have the ability to fill forms with WYSIWYG fields. I don’t understand why some styles are not applied on those fields while it applied well on the admin area. Fields are set in up with ACF or formidable forms. In both case I have the same issue.

On the admin:
enter image description here

On the frontend:
enter image description here

There are many discussion about TinyMCE style and I did a lot of reseach, but I still don’t understand why this happen.

Thanks in advance for your answers.

EDIT:
Seems like editor.css is not loaded in the frontend, I forced the loading of this css using this piece of code

function wpb_adding_styles() {
wp_register_style('my_stylesheet','https://www.example.com/wp-includes/css/editor.min.css?ver=5.4.2');
wp_enqueue_style('my_stylesheet');
}
add_action( 'wp_enqueue_scripts', 'wpb_adding_styles' );  

The result is better but nor perfect. Also for non admin user the icons disappears, here the result:
enter image description here

Thanks for your help !

0
, Abdelkader kouhli 1 year 2020-07-11T08:10:26-05:00 0 Answers 72 views 0

Leave an answer

Browse
Browse