"Caractères", 'items' => array(// Inline styles array( 'title' => __( "Semi-bold", 'headless' ), 'inline' => 'span', 'classes' => 'font-semibold', ), ), ), array( 'title' => "Liens", 'items' => array(// Link styles array( 'title' => "Lien (opacité)", 'selector' => 'a', 'classes' => 'link-opacity', ), ), ), array( 'title' => "Listes", 'items' => array(// List styles array( 'title' => "Liste horizontale", 'selector' => 'ul,ol', 'classes' => 'list-horizontal', ), ), ), array( 'title' => "Paragraphes", 'items' => array(// Paragraph styles array( 'title' => "Paragraphe vedette", 'block' => 'p', 'classes' => 'paragraph-lead', ), ), ), array( 'title' => "Titres", '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', 'headless_override_editor_styles' ); function headless_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', 'headless_remove_tinymce_default_styles', 99 ); function headless_remove_tinymce_default_styles() { ?>