Support » Plugin: FP Foundation Assistant » error in public function admin_editor_styles ( $mce_css )

  • Resolved dasKreativ

    (@lele1976)


    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

    (@fortpandemonium)

    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

Viewing 1 replies (of 1 total)
  • The topic ‘error in public function admin_editor_styles ( $mce_css )’ is closed to new replies.