From bba78c7fe14b58ae75f3da809659ff1546b3a55b Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Mon, 12 Nov 2018 13:42:05 +0000 Subject: [PATCH] [FIX] web_editor: can't unquote on firefox Firefox when asked to block format (formatting over a block with blockquote, h1, ...) has a special case for blockquote (it is documented in https://developer.mozilla.org/docs/Web/API/Document/execCommand at formatBlock command) and will wrap any element instead of replacing existing block formatting. Thus the code not expecting it was not able to remove a blockquote in firefox once introduced. opw-1903735 closes #28587 --- addons/web_editor/static/src/js/editor/summernote.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/addons/web_editor/static/src/js/editor/summernote.js b/addons/web_editor/static/src/js/editor/summernote.js index b3a5d36009b..59124d63403 100644 --- a/addons/web_editor/static/src/js/editor/summernote.js +++ b/addons/web_editor/static/src/js/editor/summernote.js @@ -1913,6 +1913,10 @@ $.summernote.pluginEvents.formatBlock = function (event, editor, layoutInfo, sTa for (var i=0; i