From c87ddd58944accd00108c8f7cf86ebc1017462c2 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Tue, 22 Jun 2021 00:32:28 +0900 Subject: [PATCH] Fix #1733 insufficient unset of layout CSS values inside editor iframe --- .../editor/skins/ckeditor/css/default.less | 27 ++++++++++++------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/modules/editor/skins/ckeditor/css/default.less b/modules/editor/skins/ckeditor/css/default.less index 6d9775b28..200f21257 100644 --- a/modules/editor/skins/ckeditor/css/default.less +++ b/modules/editor/skins/ckeditor/css/default.less @@ -114,16 +114,23 @@ html { &.cke_panel_container, &.cke_panel_container body { .light_dark(default); } - body.cke_editable { - width: unset; - height: unset; - min-width: unset; - min-height: 100vh; - box-sizing: border-box; - margin: 0; - padding: 10px; - .light_dark(@colorset); - } + width: unset; + height: unset; + min-width: unset; + min-height: 100vh; + box-sizing: border-box; + margin: 0; + padding: 0; +} +body.cke_editable { + width: unset; + height: unset; + min-width: unset; + min-height: 100vh; + box-sizing: border-box; + margin: 0; + padding: 10px; + .light_dark(@colorset); } body.color_scheme_dark.cke_auto_dark_mode .cke_wysiwyg_div { background-color: #333;