Make WordPress Core

Ticket #45375: rich-text-editing.patch

File rich-text-editing.patch, 1.1 KB (added by youknowriad, 6 years ago)
  • src/wp-admin/edit-form-blocks.php

     
    177177                ),
    178178        ),
    179179);
     180
     181/*
     182 * Set a locale specific default font.
     183 * Translators: Use this to specify the CSS font family for the default font
     184 */
     185$locale_font_family = esc_html_x( 'Noto Serif', 'CSS Font Family for Editor Font' );
     186$styles[]           = array(
     187        'css' => "body { font-family: '$locale_font_family' }",
     188);
     189
    180190if ( $editor_styles && current_theme_supports( 'editor-styles' ) ) {
    181191        foreach ( $editor_styles as $style ) {
    182192                if ( preg_match( '~^(https?:)?//~', $style ) ) {
     
    273283        'allowedMimeTypes'       => get_allowed_mime_types(),
    274284        'styles'                 => $styles,
    275285        'imageSizes'             => $available_image_sizes,
     286        'richEditingEnabled'     => user_can_richedit(),
    276287        'postLock'               => $lock_details,
    277288        'postLockUtils'          => array(
    278289                'nonce'       => wp_create_nonce( 'lock-post_' . $post->ID ),