From 0a8dcd88280836d9fcb241f97aac282c87d797e2 Mon Sep 17 00:00:00 2001 From: Lorenz Padberg Date: Mon, 18 Mar 2024 14:32:12 +0100 Subject: [PATCH] cy test --- client/src/helpers/highlight.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/src/helpers/highlight.ts b/client/src/helpers/highlight.ts index 4fd52a6d..b1e4c501 100644 --- a/client/src/helpers/highlight.ts +++ b/client/src/helpers/highlight.ts @@ -175,10 +175,10 @@ export const getSelectionHandler = const selector = parentSelector ? parentSelector : 'content-component'; const contentComponent = findClosestAncestorWithClass(startContainer, selector); if (contentComponent) { - if (contentComponent.classList.contains('content-component--solution')) { - // Lorenz: I added this to prevent highlighting of the solution. It ain't pretty, but it works - return; - } + // if (contentComponent.classList.contains('content-component--solution')) { + // // Lorenz: I added this to prevent highlighting of the solution. It ain't pretty, but it works + // return; + // } // our selection is wholly inside the container node, we continue with it const position = findPositionInParent(contentComponent); const uuid = contentComponent.dataset.uuid || '';