summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@odoo.com>2016-02-08 10:48:49 +0100
committerChristophe Matthieu <chm@odoo.com>2016-02-08 12:20:10 +0100
commit55c7d2d5b0059f9c40c7b503fde95a1745aae08a (patch)
tree3ef0fbbc769f0cc9af8b5291e2edaab3a2619e21 /addons/web_editor/static/src/js
parent82e60a964858b6e543200fc8078d8a692f003aef (diff)
[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)
Diffstat (limited to 'addons/web_editor/static/src/js')
-rw-r--r--addons/web_editor/static/src/js/backend.js4
1 files changed, 3 insertions, 1 deletions
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 () {