diff options
| author | qsm-odoo <qsm@odoo.com> | 2019-09-09 15:51:47 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2019-09-10 12:12:28 +0000 |
| commit | 8025205bb4dee4d92a85de86a0cc4436cfb70149 (patch) | |
| tree | 1ce93c225a5b40e2b5b86e0333558de8185cfa3e /addons/web_editor/views/editor.xml | |
| parent | 50d2f188f80fd5f13f72b352962ec12e099b8751 (diff) | |
[IMP] web_editor, *: introduce wysiwyg frontend loader
* website_forum, website_profile
- Share some code between website_forum and website_profile by exposing
a function in web_editor to instantiate a wysiwyg instance on a
textarea
- Use no-lazy loaded JS to add a visual loading effect while the
wysiwyg is not yet available.
This is made in preparation of task-2024197
(see https://github.com/odoo/odoo/pull/35749)
Thanks to @stefanorigano
closes odoo/odoo#36581
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/web_editor/views/editor.xml')
| -rw-r--r-- | addons/web_editor/views/editor.xml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/addons/web_editor/views/editor.xml b/addons/web_editor/views/editor.xml index 484ca4994c4..8c9c2028cd2 100644 --- a/addons/web_editor/views/editor.xml +++ b/addons/web_editor/views/editor.xml @@ -157,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"> |
