From 55c7d2d5b0059f9c40c7b503fde95a1745aae08a Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Mon, 8 Feb 2016 10:48:49 +0100 Subject: [PATCH] [FIX] web_editor: don't convert style into class by default. Only if use style-inline (because very poor performance for sale.order form view because contains very crappy dom in website_description field) --- addons/web_editor/static/src/js/backend.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/web_editor/static/src/js/backend.js b/addons/web_editor/static/src/js/backend.js index 7649d923f98..72bf61cbb7f 100644 --- a/addons/web_editor/static/src/js/backend.js +++ b/addons/web_editor/static/src/js/backend.js @@ -90,7 +90,9 @@ var FieldTextHtmlSimple = widget.extend({ setTimeout(reset, 0); this.$content = this.$('.note-editable:first'); - transcoder.style_to_class(this.$content); + if (this.options['style-inline']) { + transcoder.style_to_class(this.$content); + } } $(".oe-view-manager-content").on("scroll", function () {