diff options
| author | Christophe Matthieu <chm@odoo.com> | 2016-01-18 11:42:34 +0100 |
|---|---|---|
| committer | Christophe Matthieu <chm@odoo.com> | 2016-01-18 17:09:01 +0100 |
| commit | 4e0e376b0a2c524d99cb18a23163f52ecadd3063 (patch) | |
| tree | a73f82bc07a2fabcde14605e33c9ba9aa441bf17 /addons/web_editor/static/src/css | |
| parent | 990597ba1c41394ad23b340416266b6888edc75b (diff) | |
[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.
Diffstat (limited to 'addons/web_editor/static/src/css')
| -rw-r--r-- | addons/web_editor/static/src/css/backend.css | 6 |
1 files changed, 5 insertions, 1 deletions
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; |
