summaryrefslogtreecommitdiff
path: root/addons/web_editor
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@odoo.com>2016-01-18 11:47:26 +0100
committerChristophe Matthieu <chm@odoo.com>2016-01-18 17:09:01 +0100
commitda880a48db7e5f7fb1335b5e9e0824edee84ce88 (patch)
treef129a7c1eb06ae0a2b14ffbdfd36d51826caadd3 /addons/web_editor
parent4e0e376b0a2c524d99cb18a23163f52ecadd3063 (diff)
[FIX] web_editor: don't insert css inline for readonly html frame
The preview is not equal to the real email rendering because inline.css is present.
Diffstat (limited to 'addons/web_editor')
-rw-r--r--addons/web_editor/views/iframe.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_editor/views/iframe.xml b/addons/web_editor/views/iframe.xml
index ac9dee194ae..f216e4db588 100644
--- a/addons/web_editor/views/iframe.xml
+++ b/addons/web_editor/views/iframe.xml
@@ -15,7 +15,7 @@
var snippets_url = '<t t-esc="snippets or ''"/>';
var callback = window.location.href.match(/callback=([^&amp;=]+)/)[1];
</script>
- <link t-if="inline_mode" rel="stylesheet" href="/web_editor/static/src/css/inline.css" type="text/css"/>
+ <link t-if="enable_editor and inline_mode" rel="stylesheet" href="/web_editor/static/src/css/inline.css" type="text/css"/>
<t t-if="not dont_load_assets">
<t t-call-assets="web_editor.assets_editor"/>
<style>