summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web_editor/static/src/js')
-rw-r--r--addons/web_editor/static/src/js/tour.rte.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/addons/web_editor/static/src/js/tour.rte.js b/addons/web_editor/static/src/js/tour.rte.js
index dbf63538ae6..c8d9ed9a123 100644
--- a/addons/web_editor/static/src/js/tour.rte.js
+++ b/addons/web_editor/static/src/js/tour.rte.js
@@ -72,6 +72,11 @@ Tour.register({
{
element: 'div[data-target-event="foreColor"]:visible .note-color-row:eq(1) button[data-event="foreColor"]:first',
title: "change text color",
+ onload: function () {
+ /* TODO: find why phantomjs lose the focus and remove this onload */
+ var $el = $('#wrapwrap > main > div > section .row > div:first:not(:has(p font)) h1 font');
+ $.summernote.core.range.create($el[0].firstChild, 5, $el[0].firstChild, 10).select();
+ }
},
{
waitFor: '#editable_area > section .row > div:first h1 font:eq(2)',