summaryrefslogtreecommitdiff
path: root/addons/web_editor/views
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2019-09-13 14:44:20 +0000
committerqsm-odoo <qsm@odoo.com>2019-09-13 14:55:26 +0000
commitaa9db571e30787da8e5d486de7d0a86828dd4e79 (patch)
tree00370b274523e07d2f6b8277d69e99d67812c181 /addons/web_editor/views
parentda95ff210d93da512809d9f917f3e62264d01fe6 (diff)
[REF] web_editor: update the cropper library
Just after we first added the library in Odoo (in april 2018), the library was released in its last and deprecated version (4.0.0). At the same time, the author indeed split its 'cropper' library into 2 parts: 'cropperjs' which is the core of the original library without jquery and 'jquery-cropper' which is a jquery wrapper of the 'cropperjs' library. This commit updates our code to use the latest version of those two libraries. Note: the commit also removes the lazy loading of the library which is useless and maybe breaking since it comes with the editor assets which are themself lazy loaded. Note 2: we may want to remove the jquery wrapper in another update and simply use the standard JS library. Part of https://github.com/odoo/odoo/pull/36880 task-2059480 closes odoo/odoo#36880 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/web_editor/views')
-rw-r--r--addons/web_editor/views/editor.xml5
1 files changed, 3 insertions, 2 deletions
diff --git a/addons/web_editor/views/editor.xml b/addons/web_editor/views/editor.xml
index 8c9c2028cd2..0393af7cdf6 100644
--- a/addons/web_editor/views/editor.xml
+++ b/addons/web_editor/views/editor.xml
@@ -16,8 +16,9 @@
<t t-call-assets="web_editor.summernote"/>
- <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"/>
+ <link rel="stylesheet" type="text/css" href="/web_editor/static/lib/cropperjs/cropper.css"/>
+ <script type="text/javascript" src="/web_editor/static/lib/cropperjs/cropper.js"/>
+ <script type="text/javascript" src="/web_editor/static/lib/jquery-cropper/jquery-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"/>