From 03f38ae6caf1ef070c97437b1e404b31f634b78f Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Thu, 23 May 2013 22:49:06 +0000 Subject: [PATCH] TinyMCE: don't import color and background-color from the content when creating menus that have preview capabilities. Fixes a visual glitch: when post formats styling is added in editor-styles.css, it is applied to the menus and not reset after changing format. See #24308. git-svn-id: https://develop.svn.wordpress.org/trunk@24341 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/class-wp-editor.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/class-wp-editor.php b/wp-includes/class-wp-editor.php index 6f3a56709b..71236ba712 100644 --- a/wp-includes/class-wp-editor.php +++ b/wp-includes/class-wp-editor.php @@ -344,6 +344,7 @@ final class _WP_Editors { 'paste_strip_class_attributes' => 'all', 'paste_text_use_dialog' => true, 'webkit_fake_resize' => false, + 'preview_styles' => 'font-family font-size font-weight text-decoration text-transform', 'spellchecker_rpc_url' => self::$baseurl . '/plugins/spellchecker/rpc.php', 'schema' => 'html5', 'wpeditimage_disable_captions' => $no_captions,