?????? ????????? ?? ??????
-
???? ?? ?????? ?????
?????? ???? ????????? ??? ????? ???? ? ?? ???? ???? ??? ?? 3 ?????? ?? ???? ?????? ??????? ???? ???? ??? ????? ????? ???? ?? ????????? ????? ????? ???.- ???? ???: ????? ???. ???? ?????? ????? ?????? ??? ? ????? ???? ??? ?? ????? ???? ????? ???.
- ???? ???: ??? ?? ????? ???? ??????? ?????? ?????? ?? ???? ???? ???? ?????? ???? ???? ??? ?? ??? ?????? ??? ????? ???? ???? ?? ???? ? ?? ??????? ????.
?????? ??? ??? ?? ?? ????
functions.php
?? ??? ?? ????? ????:add_theme_support( 'editor-styles' );
????? ???? ?? ??? ???? ?????? ??????? ?? ????
functions.php
?? ??? ?? ????? ????:/**
* Fixes TinyMCE font
*
* fix wp-parsidate editor-css bug
*/
function parvand_wp_parsidate_fix_editor_styles() {
// Find and remove the specific editor style URLs
global $editor_styles;
$suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG || wpp_is_active( 'dev_mode' ) ? '' : '.min';
$styles_to_remove = [
plugins_url( "wp-parsidate/assets/css/editor$suffix.css" ),
plugins_url( "wp-parsidate/assets/css/editor$suffix-rtl.css" )
];
foreach ( $styles_to_remove as $style_url ) {
if ( ( $key = array_search( $style_url, $editor_styles ) ) !== false ) {
unset( $editor_styles[$key] );
}
}
}
add_action('init', 'parvand_wp_parsidate_fix_editor_styles', 11);
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.