|
|
@ -35,7 +35,7 @@ const handleEditorMouseDown = (e: MouseEvent) => { |
|
|
|
const isBubble = domsInEvent.some((dom) => dom?.classList?.contains('bubble-menu')) |
|
|
|
const isBubble = domsInEvent.some((dom) => dom?.classList?.contains('bubble-menu')) |
|
|
|
if (isBubble) return |
|
|
|
if (isBubble) return |
|
|
|
|
|
|
|
|
|
|
|
const pageContent = document.querySelector('.nc-docs-page-wrapper') |
|
|
|
const pageContent = document.querySelector('.nc-textarea-rich-editor') |
|
|
|
pageContent?.classList.add('bubble-menu-hidden') |
|
|
|
pageContent?.classList.add('bubble-menu-hidden') |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -45,7 +45,7 @@ const handleEditorMouseUp = (e: MouseEvent) => { |
|
|
|
if (isBubble) return |
|
|
|
if (isBubble) return |
|
|
|
|
|
|
|
|
|
|
|
setTimeout(() => { |
|
|
|
setTimeout(() => { |
|
|
|
const pageContent = document.querySelector('.nc-docs-page-wrapper') |
|
|
|
const pageContent = document.querySelector('.nc-textarea-rich-editor') |
|
|
|
pageContent?.classList.remove('bubble-menu-hidden') |
|
|
|
pageContent?.classList.remove('bubble-menu-hidden') |
|
|
|
}, 100) |
|
|
|
}, 100) |
|
|
|
} |
|
|
|
} |
|
|
|