-
- Downloads
[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".
Showing
- addons/web_editor/static/lib/summernote/summernote.js 1 addition, 1 deletionaddons/web_editor/static/lib/summernote/summernote.js
- addons/web_editor/static/src/js/wysiwyg/wysiwyg_iframe.js 2 additions, 0 deletionsaddons/web_editor/static/src/js/wysiwyg/wysiwyg_iframe.js
- addons/web_editor/static/src/xml/wysiwyg.xml 3 additions, 7 deletionsaddons/web_editor/static/src/xml/wysiwyg.xml
Loading
Please register or sign in to comment