diff options
| author | Gorash <chm@odoo.com> | 2019-03-04 08:33:53 +0000 |
|---|---|---|
| committer | Gorash <chm@odoo.com> | 2019-03-04 08:33:53 +0000 |
| commit | 972a1c99209d19ff7a75e5b22d071c8d458b3b89 (patch) | |
| tree | 8f32b056dd3d0b9d0b69a6d2b5f11376988bf1be /addons/web_editor/static/lib | |
| parent | 30bbfff8b43c359814b9a39221aafb5894ab7eb3 (diff) | |
[FIX] web_editor: Evoid the risk of deleting the summernote library
For iframes, we need to inject summernote because there are references
to "document" in it. When loading the iframe, if it is canceled, there
is a risk that the library is erased and that it breaks the field html.
We must also slightly modify the library to prevent it from making
changes to the library of the main "window".
Diffstat (limited to 'addons/web_editor/static/lib')
| -rw-r--r-- | addons/web_editor/static/lib/summernote/summernote.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_editor/static/lib/summernote/summernote.js b/addons/web_editor/static/lib/summernote/summernote.js index 2bcb61bb873..0f9dfaef656 100644 --- a/addons/web_editor/static/lib/summernote/summernote.js +++ b/addons/web_editor/static/lib/summernote/summernote.js @@ -1695,7 +1695,7 @@ var dom = { isCustomStyleTag: isCustomStyleTag }; -$$1.summernote = $$1.summernote || { +$$1.summernote = { lang: {} }; $$1.extend($$1.summernote.lang, { |
