diff --git a/client/src/helpers/highlight.ts b/client/src/helpers/highlight.ts index b1e4c501..4fd52a6d 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 || '';