diff --git a/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js b/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js index e30dc4941ad..0ed7cd18021 100644 --- a/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js +++ b/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js @@ -384,7 +384,7 @@ const Wysiwyg = Widget.extend({ })(); } $target.focus(); - if ($target.closest('#wrapwrap').length) { + if ($target.closest('#wrapwrap').length && this.snippetsMenu) { this.toggleLinkTools({ forceOpen: true, link: $target[0],