From 4e0e376b0a2c524d99cb18a23163f52ecadd3063 Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Mon, 18 Jan 2016 11:42:34 +0100 Subject: [FIX] web_editor: use iframe instead of direct content for preview The preview is not equal to the real email rendering because the backend css is present. --- addons/web_editor/static/src/css/backend.css | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'addons/web_editor/static/src/css') diff --git a/addons/web_editor/static/src/css/backend.css b/addons/web_editor/static/src/css/backend.css index 42871187d12..2462aea3b09 100644 --- a/addons/web_editor/static/src/css/backend.css +++ b/addons/web_editor/static/src/css/backend.css @@ -5,8 +5,12 @@ line-height: initial !important; color: initial !important; } -.oe_form_field_html_text .note-editable.o_readonly { +.oe_form_field_html_text iframe.o_readonly { min-height: 1em; + width: 100%; + margin: 0; + padding: 0; + border: 0; } .oe_form_field_html_text .note-editable p { margin: initial; -- cgit v1.2.3