diff --git a/assets/css/src/newsletter_editor/contentBlocks/base.styl b/assets/css/src/newsletter_editor/contentBlocks/base.styl index 2a37615fc3..9ebbcd6f90 100644 --- a/assets/css/src/newsletter_editor/contentBlocks/base.styl +++ b/assets/css/src/newsletter_editor/contentBlocks/base.styl @@ -34,7 +34,7 @@ $block-text-line-height = $text-line-height position: relative line-height: $block-text-line-height - p, h1, h2, h3, h4, h5, h6 + h1, h2, h3, h4, h5, h6 line-height: $block-text-line-height padding: 0 margin: 0 @@ -44,9 +44,15 @@ $block-text-line-height = $text-line-height h1, h2, h3, h4, h5, h6 margin-bottom: 0.3em - p + p:not(.mailpoet_wp_post) margin-top: 0 margin-bottom: 0 + padding: 0 + margin: 0 + + p + line-height: $block-text-line-height + font-style: normal font-weight: normal ul diff --git a/lib/Newsletter/Editor/PostContentManager.php b/lib/Newsletter/Editor/PostContentManager.php index 82e618e99c..655c2ba80c 100644 --- a/lib/Newsletter/Editor/PostContentManager.php +++ b/lib/Newsletter/Editor/PostContentManager.php @@ -6,6 +6,7 @@ if(!defined('ABSPATH')) exit; class PostContentManager { const MAX_EXCERPT_LENGTH = 60; + const WP_POST_CLASS = 'mailpoet_wp_post'; function getContent($post, $displayType) { if($displayType === 'titleOnly') { @@ -42,7 +43,7 @@ class PostContentManager { '

', '

', '', '