From d2892b3f3d29e8cd07139d431fe352fde7ce37af Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Wed, 7 Jan 2015 13:09:04 +0100 Subject: [PATCH] [FIX] website editor: Enter in ordered list is not properly working every new record takes the value 1 rather then incrementing it --- addons/website/static/src/js/summernote.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website/static/src/js/summernote.js b/addons/website/static/src/js/summernote.js index 448d9a54d12..46150192e55 100644 --- a/addons/website/static/src/js/summernote.js +++ b/addons/website/static/src/js/summernote.js @@ -1022,7 +1022,7 @@ define(['summernote/editing/Editor', 'summernote/summernote'], function (Editor) var node = dom.node(r.sc); var last = node; - while (node && dom.isSplitable(node)) { + while (node && dom.isSplitable(node) && !dom.isList(node)) { last = node; node = node.parentNode; }