[REM] web_editor: remove unused method _isSelectionOnlyZws
The forementioned method is not called anywhere in the code. closes odoo/odoo#111131 Related: odoo/enterprise#36356 Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user