From bf02be2b6017b663f35b89e50c0f07e044809abe Mon Sep 17 00:00:00 2001 From: Daryl Koopersmith Date: Fri, 12 Oct 2012 18:41:38 +0000 Subject: [PATCH] Display gallery and attachment MCE views as inline blocks. Make gallery MCE view wrappers block level. see #21390, #21813, #21815. git-svn-id: https://develop.svn.wordpress.org/trunk@22221 602fd350-edb4-49c9-b593-d223f7449a82 --- .../js/tinymce/themes/advanced/skins/wp_theme/content.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wp-includes/js/tinymce/themes/advanced/skins/wp_theme/content.css b/wp-includes/js/tinymce/themes/advanced/skins/wp_theme/content.css index e830395d06..610f7b86e9 100644 --- a/wp-includes/js/tinymce/themes/advanced/skins/wp_theme/content.css +++ b/wp-includes/js/tinymce/themes/advanced/skins/wp_theme/content.css @@ -262,6 +262,7 @@ img.wp-oembed { } .editor-attachment { + display: inline-block; position: relative; margin-top: 10px; margin-right: 10px; @@ -283,7 +284,12 @@ img.wp-oembed { position: relative; } +.wp-view-type-gallery { + display: block; +} + .editor-gallery { + display: inline-block; position: relative; min-height: 150px; min-width: 150px;