Skip to content

Commit cacfda7

Browse files
committed
TinyMCE: Fix styling of selected state for linked images containing captions.
Props azaozz. Fixes #41408. git-svn-id: https://develop.svn.wordpress.org/trunk@41141 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 029ce05 commit cacfda7

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

src/wp-includes/js/tinymce/skins/wordpress/wp-content.css

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,9 @@ img {
101101
width: auto !important;
102102
}
103103

104-
.wp-caption img {
105-
display: block;
104+
dl.wp-caption dt.wp-caption-dt img {
105+
display: inline-block;
106+
margin-bottom: -1ex;
106107
}
107108

108109
div.mceTemp {
@@ -180,6 +181,14 @@ img[data-mce-selected]::selection {
180181
background: #bfe6ff;
181182
}
182183

184+
.mce-content-body .wp-caption-dt a[data-mce-selected] {
185+
outline: none;
186+
padding: 0;
187+
margin: 0;
188+
box-shadow: none;
189+
background: transparent;
190+
}
191+
183192
.mce-content-body code {
184193
padding: 2px 4px;
185194
margin: 0;

0 commit comments

Comments
 (0)