[FIX] web_editor: review misleading comment

The editor was updated to handle a TODO but the TODO comment was not
removed. Originally, I wanted this commit to handle all TODO comments
around that code but failed to find the time -> at least this fixes the
comments...

Part of https://github.com/odoo/odoo/pull/74941

Part-of: odoo/odoo#74941
This commit is contained in:
qsm-odoo
2021-08-26 17:24:58 +00:00
parent c685fc18c1
commit 2fe7f6b008
@@ -174,12 +174,11 @@ const LinkPopoverWidget = Widget.extend({
/**
* Removes the link/anchor.
*
* TODO Call business methods once new editor is released instead of click
*
* @private
* @param {Event} ev
*/
_onRemoveLinkClick(ev) {
// TODO surely there is better to do than finding the editor instance in the DOM?
$('#wrapwrap').data('wysiwyg').odooEditor.execCommand('unlink');
ev.stopImmediatePropagation();
},