diff --git a/addons/web_editor/static/src/js/editor/summernote.js b/addons/web_editor/static/src/js/editor/summernote.js index f1145c8d8c1..f99bae3030f 100644 --- a/addons/web_editor/static/src/js/editor/summernote.js +++ b/addons/web_editor/static/src/js/editor/summernote.js @@ -2260,7 +2260,8 @@ $.summernote.pluginEvents.applyFont = function (event, editor, layoutInfo, color } // remove node without attributes (move content), and merge the same nodes - var className2, style, style2; + var className2, style, style2, hasBefore, hasAfter; + var noContent = ['none', null, undefined]; for (i=0; i