diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-03-08 11:04:08 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-03-08 11:04:08 +0700 |
| commit | 870a9a59efefb7ce6ff2f9dc2b952416247a9953 (patch) | |
| tree | 5d4d92fba0a70d92fd45ec173662fc71beb68c73 /web_widget_ckeditor/templates | |
| parent | aefbbe76d0cb228d6928180991f59829d3ef2139 (diff) | |
add widget ckeditor
Diffstat (limited to 'web_widget_ckeditor/templates')
| -rw-r--r-- | web_widget_ckeditor/templates/assets.xml | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/web_widget_ckeditor/templates/assets.xml b/web_widget_ckeditor/templates/assets.xml new file mode 100644 index 00000000..cf76b7cf --- /dev/null +++ b/web_widget_ckeditor/templates/assets.xml @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<!-- + Copyright 2021 Camptocamp SA (https://www.camptocamp.com). + @author Iván Todorovich <ivan.todorovich@camptocamp.com> + License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). +--> +<odoo> + + <template id="assets_backend" inherit_id="web.assets_backend"> + <xpath expr="//script[last()]" position="after"> + <script + type="text/javascript" + src="/web_widget_ckeditor/static/lib/ckeditor/build/ckeditor.js" + /> + <script + type="text/javascript" + src="/web_widget_ckeditor/static/src/js/field_ckeditor.js" + /> + </xpath> + <xpath expr="//link[last()]" position="after"> + <link + rel="stylesheet" + href="/web_widget_ckeditor/static/src/scss/web_widget_ckeditor.scss" + /> + </xpath> + </template> + + <data noupdate="1"> + <!-- + This view will override the default html wysiwyg editor with CKEditor. + Disable or remove it if you only want to use CKEditor explicitly. + --> + <template + id="assets_backend_field_html_override" + name="Override HTML field with CKEditor" + inherit_id="assets_backend" + > + <xpath expr="//script[last()]" position="after"> + <script + type="text/javascript" + src="/web_widget_ckeditor/static/src/js/field_html_override.js" + /> + </xpath> + </template> + </data> + +</odoo> |
