Title: error in public function admin_editor_styles ( $mce_css )
Last modified: March 1, 2018

---

# error in public function admin_editor_styles ( $mce_css )

 *  Resolved [dasKreativ](https://wordpress.org/support/users/lele1976/)
 * (@lele1976)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/error-in-public-function-admin_editor_styles-mce_css/)
 * Hi, in this function you only return the $mce_css in the if statement. This killed
   all backend css from other plugins and themes.
    Here is how I think it should
   be:
 *     ```
       /**
       	 * Load Editor Stylesheets.
       	 * @access  public
       	 * @since   1.0.0
       	 */
       	public function admin_editor_styles (  $mce_css ) {
   
       		if ( get_option('fp_load_foundation_icons_checkbox', true) == true ) {
       			$mce_css .= ', ' . plugins_url( 'assets/foundation/foundation-icons/foundation-icons.css',  dirname(__FILE__));
       		}
       		return $mce_css;
   
       	} // End admin_editor_styles ()
       ```
   
 * Regards
    Lennart

Viewing 1 replies (of 1 total)

 *  Plugin Author [fortpandemonium](https://wordpress.org/support/users/fortpandemonium/)
 * (@fortpandemonium)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/error-in-public-function-admin_editor_styles-mce_css/#post-10035134)
 * Hello,
 * Thank you for downloading the FP Foundation Assistant plugin and also for reporting
   the issue with the function. I’ve just released version 1.1.2, please, tell me
   if it fixes the problem.
 * Fort Pandemonium
    -  This reply was modified 8 years, 3 months ago by [fortpandemonium](https://wordpress.org/support/users/fortpandemonium/).

Viewing 1 replies (of 1 total)

The topic ‘error in public function admin_editor_styles ( $mce_css )’ is closed 
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/fp-foundation-assistant_354776.svg)
 * [FP Foundation Assistant](https://wordpress.org/plugins/fp-foundation-assistant/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/fp-foundation-assistant/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/fp-foundation-assistant/)
 * [Active Topics](https://wordpress.org/support/plugin/fp-foundation-assistant/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/fp-foundation-assistant/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/fp-foundation-assistant/reviews/)

## Tags

 * [tinymce](https://wordpress.org/support/topic-tag/tinymce/)

 * 1 reply
 * 2 participants
 * Last reply from: [fortpandemonium](https://wordpress.org/support/users/fortpandemonium/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/error-in-public-function-admin_editor_styles-mce_css/#post-10035134)
 * Status: resolved