From eef42f591f90203772edc7b11f16583f3a59855b Mon Sep 17 00:00:00 2001 From: Ella Iseulde Van Dorpe Date: Sat, 25 Jul 2015 22:43:46 +0000 Subject: [PATCH] Editor: fit images Fixes #31253. git-svn-id: https://develop.svn.wordpress.org/trunk@33417 602fd350-edb4-49c9-b593-d223f7449a82 --- .../js/tinymce/skins/wordpress/wp-content.css | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/js/tinymce/skins/wordpress/wp-content.css b/src/wp-includes/js/tinymce/skins/wordpress/wp-content.css index 53e6d541f7..df4671465e 100644 --- a/src/wp-includes/js/tinymce/skins/wordpress/wp-content.css +++ b/src/wp-includes/js/tinymce/skins/wordpress/wp-content.css @@ -75,8 +75,19 @@ img.emoji { text-align: center; } +img { + height: auto; + max-width: 100%; +} + .wp-caption { - margin: 0; + margin: 0; /* browser reset */ + max-width: 100%; +} + +/* iOS does not obey max-width if width is set. */ +.ios .wp-caption { + width: auto !important; } .wp-caption img {