From 231c4d5fd8d4cc3903970fe67b784cebc9f94c7b Mon Sep 17 00:00:00 2001 From: Christophe Monniez Date: Sat, 16 Dec 2017 10:05:35 +0100 Subject: [PATCH] [FIX] web_editor: rte_inline tour succeed on chrome The rte_inline tour was failing on chrome because jquery selector in chrome does not like a space in the style selector. On the other hand, other browsers and phantomjs need the space. This commit change the selector to find the element on chrome and friends. --- addons/web_editor/static/src/js/tours/rte.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web_editor/static/src/js/tours/rte.js b/addons/web_editor/static/src/js/tours/rte.js index f80704bf878..0714afadc6f 100644 --- a/addons/web_editor/static/src/js/tours/rte.js +++ b/addons/web_editor/static/src/js/tours/rte.js @@ -323,6 +323,6 @@ tour.register('rte_inline', { trigger: '#wrapwrap img:eq(1)[height]:not([class*="fa"])', }, { content: "check the second font class to css", - trigger: '#wrapwrap img:eq(2)[style*="float: right"]', + trigger: '#wrapwrap img:eq(2)[style*="float: right"],#wrapwrap img:eq(2)[style*="float:right"]', }]); });