From c254c4c684f0752e68917a3084a9f6b7295a86f1 Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Mon, 26 Feb 2018 11:19:19 +0100 Subject: [FIX] web_editor: stop crashing on applying fonts with standalone summernote Commit https://github.com/odoo/odoo/commit/137c4f5d76b55c3dd3c4f593de484aadfcf5e6da?w=1#diff-6a334b274d95fb88a4fbc29b910fbb59R2120 introduced a bug as it is using a function which is defined in another asset. This is fine for connected users but not for summernote-only users like public users on the forum. The reason the line was introduced is unsure so it is simply removed for now. The bug it was supposed to fix will be fixed later if it ever needs to be. --- addons/web_editor/static/src/js/editor/summernote.js | 2 -- 1 file changed, 2 deletions(-) (limited to 'addons/web_editor/static/src/js/editor') diff --git a/addons/web_editor/static/src/js/editor/summernote.js b/addons/web_editor/static/src/js/editor/summernote.js index 121a1a6d3d7..58710987a51 100644 --- a/addons/web_editor/static/src/js/editor/summernote.js +++ b/addons/web_editor/static/src/js/editor/summernote.js @@ -2176,7 +2176,6 @@ $.summernote.pluginEvents.applyFont = function (event, editor, layoutInfo, color } // remove node without attributes (move content), and merge the same nodes - if (!dom.isImgFont(node)) { var className2, style, style2; for (i=0; i