2

When I create a transactional e-mail via Marketing --> E-Mail Templates and then click "Preview" my preview window is somehow being cut to a preview_iframe which only covers like 1/5th of the full page and I need to scroll in order to see the full e-mail preview.

Does anyone have an idea how and where I can edit this, so e-mail preview is showing on full page?

1 Answer 1

0

I found this answer and code : here that worked for me.

Using the Kishan code gives me a screen that says "Email Preview" at the Top, with the Magento copyright info underneath but no template content in 2.3.4. I stumbled across this code on git healthywebsites clintonwere that gave me the result I expected. Hopefully it can help somebody else.

<?xml version="1.0"?> <!-- /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ --> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <update handle="empty" /> <body> <referenceContainer name="root"> <block name="preview.page.content" class="Magento\Framework\View\Element\Template" template="Magento_Email::template/preview.phtml"> <block class="Magento\Email\Block\Adminhtml\Template\Preview" name="content" as="content"/> </block> </referenceContainer> </body> </page> 

You can use to replace app/code/Vendor/Module/view/adminhtml/layout/adminhtml_email_template_preview.xml

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.