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, { diff --git a/addons/web_editor/static/src/js/wysiwyg/wysiwyg_iframe.js b/addons/web_editor/static/src/js/wysiwyg/wysiwyg_iframe.js index be6ac41e5cb..0d75f360731 100644 --- a/addons/web_editor/static/src/js/wysiwyg/wysiwyg_iframe.js +++ b/addons/web_editor/static/src/js/wysiwyg/wysiwyg_iframe.js @@ -13,6 +13,8 @@ $.fn.summernote = function () { var summernote = this[0].ownerDocument.defaultView._fnSummenoteSlave || _fnSummernoteMaster; return summernote.apply(this, arguments); }; +window._fnSummernoteMaster = $.fn.summernote; +window._summernoteMaster = _summernoteMaster; /** * Add option (inIframe) to load Wysiwyg in an iframe. diff --git a/addons/web_editor/static/src/xml/wysiwyg.xml b/addons/web_editor/static/src/xml/wysiwyg.xml index d28efeee92b..87d984b6fcd 100644 --- a/addons/web_editor/static/src/xml/wysiwyg.xml +++ b/addons/web_editor/static/src/xml/wysiwyg.xml @@ -23,19 +23,15 @@