From 6ea5bf420d1acb0649ce5c0e27b1716eaeb69961 Mon Sep 17 00:00:00 2001 From: Aleksander Nowodzinski Date: Thu, 18 Aug 2022 15:34:29 +0200 Subject: [PATCH] (Hack) Excluded the TooltipManager singleton from the ContextWatchdog property connection. --- packages/ckeditor5-ui/src/tooltipmanager.js | 3 +++ packages/ckeditor5-watchdog/src/utils/getsubnodes.js | 1 + 2 files changed, 4 insertions(+) diff --git a/packages/ckeditor5-ui/src/tooltipmanager.js b/packages/ckeditor5-ui/src/tooltipmanager.js index ca111468777..73e69d44196 100644 --- a/packages/ckeditor5-ui/src/tooltipmanager.js +++ b/packages/ckeditor5-ui/src/tooltipmanager.js @@ -72,6 +72,9 @@ export default class TooltipManager { * @param {module:core/editor/editor~Editor} editor */ constructor( editor ) { + // See: ContextWatchdog. + this._watchdogExcluded = true; + TooltipManager._editors.add( editor ); // TooltipManager must be a singleton. Multiple instances would mean multiple tooltips attached diff --git a/packages/ckeditor5-watchdog/src/utils/getsubnodes.js b/packages/ckeditor5-watchdog/src/utils/getsubnodes.js index bca9c677488..eb3cd2aa09e 100644 --- a/packages/ckeditor5-watchdog/src/utils/getsubnodes.js +++ b/packages/ckeditor5-watchdog/src/utils/getsubnodes.js @@ -83,6 +83,7 @@ function shouldNodeBeSkipped( node ) { node === undefined || node === null || + node._watchdogExcluded === true || // Skip native DOM objects, e.g. Window, nodes, events, etc. node instanceof EventTarget ||