Skip to content

Commit

Permalink
Merge pull request #128 from Dedi-Data/patch-1
Browse files Browse the repository at this point in the history
Fix for loading Vazir font in block editor
  • Loading branch information
man4toman authored May 18, 2022
2 parents e530501 + 92f89a3 commit 0ebe6db
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions includes/admin/styles-fix.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
add_filter( 'init', 'wpp_fix_tinymce_font', 9 );

0 comments on commit 0ebe6db

Please sign in to comment.