From fd9ee5e28ba71970bc5751e741d9d0939fb85456 Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Thu, 12 Feb 2015 18:01:08 +0100 Subject: [PATCH] [FIX] website summernote: back to the top when change the font-size --- addons/website/static/src/js/summernote.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/website/static/src/js/summernote.js b/addons/website/static/src/js/summernote.js index 154c98cd61e..778eefe434d 100644 --- a/addons/website/static/src/js/summernote.js +++ b/addons/website/static/src/js/summernote.js @@ -1969,6 +1969,7 @@ define(['summernote/editing/Editor', 'summernote/summernote'], function (Editor) }; $.summernote.pluginEvents.fontSize = function (event, editor, layoutInfo, value) { var $editable = layoutInfo.editable(); + event.preventDefault(); $.summernote.pluginEvents.applyFont(event, editor, layoutInfo, null, null, value); editor.afterCommand($editable); };