diff options
| author | Christophe Simonis <chs@odoo.com> | 2019-09-13 18:07:59 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2019-09-13 18:07:59 +0200 |
| commit | 6c948c36bbf72dd896e0bff03aa7fbddadcbb0cd (patch) | |
| tree | f8620905c011735d8a3c340c46d1417a54a75972 /addons/web_editor/views/editor.xml | |
| parent | 48503fcf08eac6fed12e080d4f501f9bbc8d257d (diff) | |
| parent | 197474e5b9ad43ab2d587a98136a1a809ce9a2e7 (diff) | |
[MERGE] forward port branch saas-12.5 up to 197474e5b9a
Diffstat (limited to 'addons/web_editor/views/editor.xml')
| -rw-r--r-- | addons/web_editor/views/editor.xml | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/addons/web_editor/views/editor.xml b/addons/web_editor/views/editor.xml index 8be49ec0c20..8c9c2028cd2 100644 --- a/addons/web_editor/views/editor.xml +++ b/addons/web_editor/views/editor.xml @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <odoo> -<template id="wysiwyg_iframe_css_assets" name="CSS assets for wysiwyg iframe content"> -</template> - <template id="wysiwyg_iframe_editor_assets" name="Editor assets for wysiwyg iframe content"> <t t-call-assets="web.assets_common"/> <t t-call-assets="web.assets_frontend" t-js="false"/> @@ -22,21 +19,21 @@ <link rel="stylesheet" type="text/css" href="/web_editor/static/lib/cropper/css/cropper.css"/> <script type="text/javascript" src="/web_editor/static/lib/cropper/js/cropper.js"/> <script type="text/javascript" src="/web_editor/static/lib/jQuery.transfo.js"/> + <script type="text/javascript" src="/web_editor/static/lib/nearest/jquery.nearest.js"/> <!-- odoo utils --> <t t-call="web._assets_helpers"> <link rel="stylesheet" type="text/scss" href="/web_editor/static/src/scss/bootstrap_overridden.scss"/> - <link rel="stylesheet" type="text/scss" href="/web_editor/static/src/scss/wysiwyg_variables.scss"/> </t> <!-- integration --> <link rel="stylesheet" type="text/scss" href="/web_editor/static/src/scss/wysiwyg.scss"/> <link rel="stylesheet" type="text/scss" href="/web_editor/static/src/scss/wysiwyg_iframe.scss"/> + <link rel="stylesheet" type="text/scss" href="/web_editor/static/src/scss/wysiwyg_snippets.scss"/> <script type="text/javascript" src="/web_editor/static/src/js/wysiwyg/fonts.js"/> - <script type="text/javascript" src="/web_editor/static/lib/nearest/jquery.nearest.js"/> <script type="text/javascript" src="/web_editor/static/src/js/base.js"/> <script type="text/javascript" src="/web_editor/static/src/js/editor/editor.js"/> <script type="text/javascript" src="/web_editor/static/src/js/editor/rte.js"/> @@ -54,6 +51,9 @@ <script type="text/javascript" src="/web_editor/static/src/js/wysiwyg/widgets/media_dialog.js"/> <script type="text/javascript" src="/web_editor/static/src/js/wysiwyg/widgets/widgets.js"/> + <script type="text/javascript" src="/web_editor/static/src/js/editor/snippets.editor.js"/> + <script type="text/javascript" src="/web_editor/static/src/js/editor/snippets.options.js"/> + <!-- Launcher --> <script type="text/javascript" src="/web_editor/static/src/js/wysiwyg/wysiwyg.js"/> @@ -113,20 +113,9 @@ <link rel="stylesheet" type="text/css" href="/web_editor/static/lib/summernote/src/css/summernote.css"/> </template> -<template id="wysiwyg_snippets" inherit_id="web_editor.assets_wysiwyg" name="Wysiwyg Editor additional snippets"> - <xpath expr="script[@src='/web_editor/static/src/js/editor/rte.summernote.js']" position="after"> - <link rel="stylesheet" type="text/scss" href="/web_editor/static/src/scss/wysiwyg_snippets.scss"/> - - <script type="text/javascript" src="/web_editor/static/lib/nearest/jquery.nearest.js"/> - <script type="text/javascript" src="/web_editor/static/src/js/editor/snippets.editor.js"/> - <script type="text/javascript" src="/web_editor/static/src/js/editor/snippets.options.js"/> - </xpath> -</template> - <template id="_assets_primary_variables" inherit_id="web._assets_primary_variables"> <xpath expr="//link[last()]" position="after"> <link rel="stylesheet" type="text/scss" href="/web_editor/static/src/scss/web_editor.variables.scss"/> - <link rel="stylesheet" type="text/scss" href="/web_editor/static/src/scss/wysiwyg_variables.scss"/> </xpath> </template> @@ -168,11 +157,20 @@ </xpath> </template> +<template id="_assets_frontend_minimal_js" inherit_id="web._assets_frontend_minimal_js"> + <xpath expr="//script[last()]" position="after"> + <script type="text/javascript" src="/web_editor/static/src/js/frontend/loader_loading.js"/> + </xpath> +</template> + <template id="assets_frontend" inherit_id="web.assets_frontend" name="Web Editor Frontend Assets (used in public odoo)" priority="15"> <xpath expr="//link[last()]" position="after"> <link rel="stylesheet" type="text/scss" href="/web_editor/static/src/scss/web_editor.common.scss"/> <!-- not in common because compiled differently with context --> <link rel="stylesheet" type ="text/scss" href="/web_editor/static/src/scss/web_editor.frontend.scss"/> </xpath> + <xpath expr="//script[last()]" position="after"> + <script type="text/javascript" src="/web_editor/static/src/js/frontend/loader.js"/> + </xpath> </template> <template id="qunit_suite" inherit_id="web.qunit_suite"> |
