diff --git a/addons/web_editor/static/src/js/editor/snippets.editor.js b/addons/web_editor/static/src/js/editor/snippets.editor.js index 9a64abd4247..b8ab92a3d8d 100644 --- a/addons/web_editor/static/src/js/editor/snippets.editor.js +++ b/addons/web_editor/static/src/js/editor/snippets.editor.js @@ -943,6 +943,11 @@ var SnippetsMenu = Widget.extend({ $(range && range.sc).closest('.o_default_snippet_text').removeClass('o_default_snippet_text'); }); + const $autoFocusEls = $('.o_we_snippet_autofocus'); + if ($autoFocusEls.length) { + this._activateSnippet($autoFocusEls.first()); + } + return Promise.all(defs).then(() => { this.$('[data-title]').tooltip({ delay: 0, diff --git a/addons/web_editor/static/src/scss/web_editor.common.scss b/addons/web_editor/static/src/scss/web_editor.common.scss index f07bc344764..fae52f13a52 100644 --- a/addons/web_editor/static/src/scss/web_editor.common.scss +++ b/addons/web_editor/static/src/scss/web_editor.common.scss @@ -506,3 +506,11 @@ a.o_underline { } } } + +// BS4 blockquote has no style anymore, except bloquote