Ticket #45375: rich-text-editing.patch
File rich-text-editing.patch, 1.1 KB (added by , 6 years ago) |
---|
-
src/wp-admin/edit-form-blocks.php
177 177 ), 178 178 ), 179 179 ); 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 180 190 if ( $editor_styles && current_theme_supports( 'editor-styles' ) ) { 181 191 foreach ( $editor_styles as $style ) { 182 192 if ( preg_match( '~^(https?:)?//~', $style ) ) { … … 273 283 'allowedMimeTypes' => get_allowed_mime_types(), 274 284 'styles' => $styles, 275 285 'imageSizes' => $available_image_sizes, 286 'richEditingEnabled' => user_can_richedit(), 276 287 'postLock' => $lock_details, 277 288 'postLockUtils' => array( 278 289 'nonce' => wp_create_nonce( 'lock-post_' . $post->ID ),