From 4fba615d300a4992f7cecbea022b57f46227b3dc Mon Sep 17 00:00:00 2001 From: Rostislav Wolny Date: Thu, 21 Jun 2018 15:39:22 +0200 Subject: [PATCH] Fix rendering of posts in newsletter [MAILPOET-1416] --- lib/Newsletter/Editor/PostContentManager.php | 6 +- lib/Newsletter/Editor/PostTransformer.php | 47 +++++++------- .../Editor/PostContentManagerTest.php | 63 +++++++++++++++---- 3 files changed, 79 insertions(+), 37 deletions(-) diff --git a/lib/Newsletter/Editor/PostContentManager.php b/lib/Newsletter/Editor/PostContentManager.php index 1c5f959f25..59f962b977 100644 --- a/lib/Newsletter/Editor/PostContentManager.php +++ b/lib/Newsletter/Editor/PostContentManager.php @@ -30,7 +30,7 @@ class PostContentManager { } } - function filterContent($content, $with_post_class = true) { + function filterContent($content, $display_type, $with_post_class = true) { $content = self::convertEmbeddedContent($content); // convert h4 h5 h6 to h3 @@ -48,6 +48,10 @@ class PostContentManager { '

', '', '', '', '', '', '', '