Backend page editor loading frontend stylesheet (style.css)

[ad_1]

I have been given access to a website to make modifications and the website keeps loading the frontend stylesheet in the backend page editor which makes the WP Bakery TinyMCE text editor basically unusable.

I have searched the functions.php file to try and circumvent it but there is nothing in there loading.

What I have found is that there is JavaScript in the footer section which loads the style.css file in the TinyMCE initialisation in the mceInit {} object:

tinyMCEPreInit = {
			baseURL: "...",
			suffix: ".min",
			dragDropUpload: true,			
			mceInit:{content_css:"loaded here"} 

}

Where is the tinyMCEPreInit initialised and how/where do I modify it?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer