diff --git a/Projects/Superalgos/UI/Spaces/Docs-Space/ContextMenu.js b/Projects/Superalgos/UI/Spaces/Docs-Space/ContextMenu.js index 6c636076f..b2dd3d6f1 100644 --- a/Projects/Superalgos/UI/Spaces/Docs-Space/ContextMenu.js +++ b/Projects/Superalgos/UI/Spaces/Docs-Space/ContextMenu.js @@ -293,7 +293,7 @@ function newSuperalgosDocsContextMenu() { We need to locate the parent node that it is a Paragraph, otherwise we could end up in an inner html element. */ - let paragraphNode = selection.baseNode + let paragraphNode = selection.anchorNode if (paragraphNode.id !== undefined && paragraphNode.parentNode.className === "docs-tooltip") { return false @@ -457,4 +457,4 @@ function newSuperalgosDocsContextMenu() { return true } } -} \ No newline at end of file +}