diff --git a/includes/admin/styles-fix.php b/includes/admin/styles-fix.php index 4aa5d96..b693136 100644 --- a/includes/admin/styles-fix.php +++ b/includes/admin/styles-fix.php @@ -32,9 +32,10 @@ function wpp_fix_editor_rtl() { * @since 2.0 */ function wpp_fix_tinymce_font() { + if( wpp_is_active( 'enable_fonts' ) ){ $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG || wpp_is_active( 'dev_mode' ) ? '' : '.min'; - add_editor_style( WP_PARSI_URL . "assets/css/editor$suffix.css" ); + } } -add_filter( 'init', 'wpp_fix_tinymce_font', 9 ); \ No newline at end of file +add_filter( 'init', 'wpp_fix_tinymce_font', 9 );