From 55f10ac9a0bb574a893e84c3ee6237e1d439750b Mon Sep 17 00:00:00 2001 From: Goaman Date: Thu, 17 Sep 2020 15:44:15 +0000 Subject: [PATCH] [IMP] web_editor: add assets for jabberwock editor This commit lays the groundwork for the new editor by adding empty files to the assets in order to change them later on. The new editor is not stable enough to be merged right now, but delaying it to 15.0 would be problematic as the current editor has many bugs that we are unable to fix because of how summernote interacts with browser-dependent code as well as all the hacks that were done on top of it for Odoo since 8.0. --- .../static/src/scss/mass_mailing.ui.jw.scss | 0 .../src/scss/mass_mailing.ui.shadow.scss | 0 addons/mass_mailing/views/assets.xml | 4 +++ .../static/lib/jabberwock/jabberwock.css | 0 .../static/lib/jabberwock/jabberwock.js | 0 .../summernote/src/js/enable_summernote.js | 1 + .../static/src/js/editor/custom_colors.js | 0 .../wysiwyg/wysiwyg_translate_attributes.js | 0 addons/web_editor/views/editor.xml | 26 ++++++++++++++----- addons/web_editor/views/snippets.xml | 5 ++++ .../website/static/src/js/editor/mega_menu.js | 0 addons/website/views/assets.xml | 2 ++ 12 files changed, 32 insertions(+), 6 deletions(-) create mode 100644 addons/mass_mailing/static/src/scss/mass_mailing.ui.jw.scss create mode 100644 addons/mass_mailing/static/src/scss/mass_mailing.ui.shadow.scss create mode 100644 addons/web_editor/static/lib/jabberwock/jabberwock.css create mode 100644 addons/web_editor/static/lib/jabberwock/jabberwock.js create mode 100644 addons/web_editor/static/lib/summernote/src/js/enable_summernote.js create mode 100644 addons/web_editor/static/src/js/editor/custom_colors.js create mode 100644 addons/web_editor/static/src/js/wysiwyg/wysiwyg_translate_attributes.js create mode 100644 addons/website/static/src/js/editor/mega_menu.js diff --git a/addons/mass_mailing/static/src/scss/mass_mailing.ui.jw.scss b/addons/mass_mailing/static/src/scss/mass_mailing.ui.jw.scss new file mode 100644 index 00000000000..e69de29bb2d diff --git a/addons/mass_mailing/static/src/scss/mass_mailing.ui.shadow.scss b/addons/mass_mailing/static/src/scss/mass_mailing.ui.shadow.scss new file mode 100644 index 00000000000..e69de29bb2d diff --git a/addons/mass_mailing/views/assets.xml b/addons/mass_mailing/views/assets.xml index a1f644b04e7..f5ed615e4b0 100644 --- a/addons/mass_mailing/views/assets.xml +++ b/addons/mass_mailing/views/assets.xml @@ -5,6 +5,7 @@ + @@ -26,10 +27,13 @@ diff --git a/addons/web_editor/static/lib/jabberwock/jabberwock.css b/addons/web_editor/static/lib/jabberwock/jabberwock.css new file mode 100644 index 00000000000..e69de29bb2d diff --git a/addons/web_editor/static/lib/jabberwock/jabberwock.js b/addons/web_editor/static/lib/jabberwock/jabberwock.js new file mode 100644 index 00000000000..e69de29bb2d diff --git a/addons/web_editor/static/lib/summernote/src/js/enable_summernote.js b/addons/web_editor/static/lib/summernote/src/js/enable_summernote.js new file mode 100644 index 00000000000..7169d856b60 --- /dev/null +++ b/addons/web_editor/static/lib/summernote/src/js/enable_summernote.js @@ -0,0 +1 @@ +odoo.__enable_summernote__ = true; diff --git a/addons/web_editor/static/src/js/editor/custom_colors.js b/addons/web_editor/static/src/js/editor/custom_colors.js new file mode 100644 index 00000000000..e69de29bb2d diff --git a/addons/web_editor/static/src/js/wysiwyg/wysiwyg_translate_attributes.js b/addons/web_editor/static/src/js/wysiwyg/wysiwyg_translate_attributes.js new file mode 100644 index 00000000000..e69de29bb2d diff --git a/addons/web_editor/views/editor.xml b/addons/web_editor/views/editor.xml index be8b33b10d1..3d87ba2d34f 100644 --- a/addons/web_editor/views/editor.xml +++ b/addons/web_editor/views/editor.xml @@ -11,7 +11,7 @@ -