__( "Link styles", 'moonshine' ), 'items' => array(// Link styles array( 'title' => "Lien (opacité)", 'selector' => 'a', 'classes' => 'link-opacity', ), ), ), array( 'title' => __( "Inline styles", 'moonshine' ), 'items' => array(// Inline styles array( 'title' => __( "Semi-bold", 'moonshine' ), 'inline' => 'span', 'classes' => 'font-semibold', ), ), ), array( 'title' => __( "Paragraph styles", 'moonshine' ), 'items' => array(// Paragraph styles array( 'title' => "Paragraphe vedette", 'block' => 'p', 'classes' => 'paragraph-lead', ), ), ), array( 'title' => __( "Heading styles", 'moonshine' ), 'items' => array(// Heading styles array( 'title' => "Titre 1", 'selector' => 'h1,h2,h3,h4', 'classes' => 'heading-1', ), array( 'title' => "Titre 2", 'selector' => 'h1,h2,h3,h4', 'classes' => 'heading-2', ), array( 'title' => "Titre 3", 'selector' => 'h1,h2,h3,h4', 'classes' => 'heading-3', ), array( 'title' => "Titre 4", 'selector' => 'h1,h2,h3,h4', 'classes' => 'heading-4', ), ), ), ) ); // Block styles $settings['block_formats'] = implode( ';', array( 'Paragraph=p', 'Heading 1=h1', 'Heading 2=h2', 'Heading 3=h3', 'Heading 4=h4', ) ); return $settings; } // Override TinyMCE editor styles add_filter( 'mce_css', 'moonshine_override_editor_styles' ); function moonshine_override_editor_styles() { return get_stylesheet_directory_uri() . '/editor-style.css'; } // Remove default TinyMCE styles for all editors (WordPress & ACF) add_action( 'admin_print_footer_scripts', 'moonshine_remove_tinymce_default_styles', 99 ); function moonshine_remove_tinymce_default_styles() { ?>