From aee7e6a1bfdc476d5570090002c3eda322cc3c09 Mon Sep 17 00:00:00 2001 From: Matias Ventura Date: Thu, 18 May 2017 17:52:42 +0000 Subject: [PATCH] TinyMCE: Provide styles for link and code boundaries. The new version of TinyMCE introduces a cursor-boundary feature for some formatting elements but, by default, it does not provide much in the way of styles. This tweaks their appearance in the WordPress custom skin to match the intended design of the feature. Props joen. Fixes #40767. Built from https://develop.svn.wordpress.org/trunk@40783 git-svn-id: http://core.svn.wordpress.org/trunk@40641 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../js/tinymce/skins/wordpress/wp-content.css | 21 +++++++++++++++++++ wp-includes/version.php | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/wp-includes/js/tinymce/skins/wordpress/wp-content.css b/wp-includes/js/tinymce/skins/wordpress/wp-content.css index 84ae59c39b..a09829bf38 100644 --- a/wp-includes/js/tinymce/skins/wordpress/wp-content.css +++ b/wp-includes/js/tinymce/skins/wordpress/wp-content.css @@ -171,6 +171,27 @@ img[data-mce-selected]::selection { background: transparent url( images/pagebreak.png ) repeat-y scroll center center; } +/* Styles for formatting the boundaries of anchors and code elements */ +.mce-content-body a[data-mce-selected] { + padding: 0 2px; + margin: 0 -2px; + border-radius: 2px; + box-shadow: 0 0 0 1px #bfe6ff; + background: #bfe6ff; +} + +.mce-content-body code { + padding: 2px 4px; + margin: 0; + border-radius: 2px; + color: #222; + background: #f2f4f5; +} + +.mce-content-body code[data-mce-selected] { + background: #e9ebec; +} + /* Gallery, audio, video placeholders */ .mce-content-body img.wp-media { border: 1px solid #aaa; diff --git a/wp-includes/version.php b/wp-includes/version.php index 8eca71e06d..3d66bf0e62 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.8-beta1-40782'; +$wp_version = '4.8-beta1-40783'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.