eugeneb 50 Posted January 28 Report Share Posted January 28 Something I have seen for years with X2 that doesn't make sense! I go to a lot of trouble designing my responsive emails in Docs module as templates. I don't use any complex HTML and keep it super simple. I mainly do text based campaigns but need some basic styling with tabled, colors etc. When I then use these templates in a Campaign, the campaign rich text editor then deletes most of the code and ends up sending this vanilla email that doesn't look at all like what I designed. Why is this? Why is the rich text editor in Docs somehow different from the editor in Campaign? Super frustrating. Quote Link to post Share on other sites
jack 29 Posted January 31 Report Share Posted January 31 Hi eugenb, This is most likely due to style (width, height, font-size, etc...) you use in your HTML. Some of our validators check style on html when you save and says what style elements are allowed to be set and which are not. I can't name the files that do this off the top of my head but we will look into changing this in a future release. -Jack Quote Link to post Share on other sites
eugeneb 50 Posted February 1 Author Report Share Posted February 1 Thanks Jack. My concern is more why is it different from the Docs module to the editor used in the Campaign. Its actually been doing this since I used X2. I always have to open my HTML email in the campaign editor to make sure it works. Then I go back and scale down the styling and code in the Docs module. In the campaign editor you cant really have anything other than the most simplistic HTML. I always thought its to make the email more readable over the various browsers. Should it not be the same? Its really horrible because one takes time developing your emails. then run the campaign and it changes the email going out completely. If its a quick fix please let me know. Happy to update any of my code 😉 Quote Link to post Share on other sites
jack 29 Posted February 2 Report Share Posted February 2 Hi Eugeneb, I don't have any specifics but removing "$model->content = Fields::getPurifier()->purify($model->content);" from the marking controller should work. You can also mess with the function "public static function getPurifier(){" in the file protected/models/Fields.php to allow the html that is being striped. I have not tested either of these solutions but it should be the right direction. -Jack Quote Link to post Share on other sites
eugeneb 50 Posted February 3 Author Report Share Posted February 3 Thanks Jack. I will give it a try. I am sure this must be an issue for other users also? I haven't searched the forum specifically. Quote Link to post Share on other sites
eugeneb 50 Posted February 4 Author Report Share Posted February 4 @jack can this also be one of the reasons?. I found this forum post that sounds like it is related. Quote Link to post Share on other sites
jack 29 Posted February 4 Report Share Posted February 4 That could be the issue for you, but if all your text of your email is intact then I would not think it is being truncated. 1 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.