diff options
| author | Samuel Degueldre <sad@odoo.com> | 2020-03-24 13:56:50 +0000 |
|---|---|---|
| committer | Samuel Degueldre <sad@odoo.com> | 2020-03-30 11:06:48 +0000 |
| commit | 25630e442129e98a78e790949a471e5eceb9a843 (patch) | |
| tree | f0cbf07e89cfe19e439a43db664638afe7623f50 /addons/web_editor/static/src/js/editor/rte.summernote.js | |
| parent | 5576a5f84d7d7b539498f15b7e26165b61c52ba5 (diff) | |
[IMP] web_editor: remove summernoteManager from rte
The wysiwyg which is the parent of the EditorMenuBar already has an
instance that can be used instead.
Diffstat (limited to 'addons/web_editor/static/src/js/editor/rte.summernote.js')
| -rw-r--r-- | addons/web_editor/static/src/js/editor/rte.summernote.js | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/addons/web_editor/static/src/js/editor/rte.summernote.js b/addons/web_editor/static/src/js/editor/rte.summernote.js index 8b2a2c1d8c2..cb7d64f4e56 100644 --- a/addons/web_editor/static/src/js/editor/rte.summernote.js +++ b/addons/web_editor/static/src/js/editor/rte.summernote.js @@ -1232,39 +1232,5 @@ var SummernoteManager = Class.extend(mixins.EventDispatcherMixin, ServicesMixin, mediaDialog.open(); }, }); -/** - * @todo cannot do this without include because it would make a loop in the - * JS module dependencies otherwise. - */ -rte.Class.include({ - /** - * @override - */ - start: function () { - this._summernoteManager = new SummernoteManager(this); - return this._super.apply(this, arguments); - }, - /** - * @override - */ - cancel: function () { - this._super.apply(this, arguments); - this._summernoteManager.destroy(); - }, - - //-------------------------------------------------------------------------- - // Public - //-------------------------------------------------------------------------- - - /** - * Create/Update cropped attachments. - * - * @param {jQuery} $editable - * @returns {Deferred} - */ - saveCroppedImages: function ($editable) { - return this._summernoteManager.saveCroppedImages($editable); - }, -}); return SummernoteManager; }); |
