From b1201cdcef84566f02bf42e62269551185e50210 Mon Sep 17 00:00:00 2001 From: Ken Clary Date: Tue, 31 Jan 2023 16:55:44 -0500 Subject: [PATCH] fix: correct css for text margins in question tinymce. TNL-10390. --- src/editors/data/constants/tinyMCEStyles.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/editors/data/constants/tinyMCEStyles.js b/src/editors/data/constants/tinyMCEStyles.js index 77ec9c66a..dca3507a3 100644 --- a/src/editors/data/constants/tinyMCEStyles.js +++ b/src/editors/data/constants/tinyMCEStyles.js @@ -98,7 +98,7 @@ const getStyles = () => ( background: none; } .mce-content-body { - padding: 10px; + padding: 0; background-color: #fff; font-family: 'Open Sans', Verdana, Arial, Helvetica, sans-serif; font-size: 16px; @@ -162,6 +162,7 @@ const getStyles = () => ( } .mce-content-body p { margin-bottom: 1.416em; + margin-top: 0; font-size: 1em; line-height: 1.6em !important; color: #3c3c3c; @@ -222,10 +223,10 @@ const getStyles = () => ( position: absolute; } .mce-content-body:not([dir=rtl])[data-mce-placeholder]:not(.mce-visualblocks)::before { - margin: 1em 0; + margin: 0; } .mce-content-body[dir=rtl][data-mce-placeholder]:not(.mce-visualblocks)::before { - margin: 1em 0; + margin: 0; }` );