diff --git a/addons/web_editor/static/src/js/editor/odoo-editor/src/OdooEditor.js b/addons/web_editor/static/src/js/editor/odoo-editor/src/OdooEditor.js index 37eed349ea9..4c399d37f58 100644 --- a/addons/web_editor/static/src/js/editor/odoo-editor/src/OdooEditor.js +++ b/addons/web_editor/static/src/js/editor/odoo-editor/src/OdooEditor.js @@ -3645,21 +3645,6 @@ export class OdooEditor extends EventTarget { } } - /** - * Returns true if the current selection content is only one ZWS - * - * @private - * @param {Object} selection - * @returns {boolean} - */ - _isSelectionOnlyZws(selection) { - let range = selection.getRangeAt(0); - if (selection.isCollapsed || !range) { - return false; - } - return range.cloneContents().textContent === '\u200B'; - } - getCurrentCollaborativeSelection() { const selection = this._latestComputedSelection || this._computeHistorySelection(); if (!selection) return;