[FIX] web_editor: prevent a click to open the link dialog
When clicking in a link in the forum, the link dialog was opened. This is wrong as there the link popover is shown and to open the link dialog, we must click on the button in the link popover. task-3147819 X-original-commit: 5c5aa21dffe3691547766cf1f16065ae74c41f07 Part-of: odoo/odoo#113135
This commit is contained in:
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user