mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-20 15:26:09 +01:00
This commit is contained in:
parent
acf8aa5ffa
commit
049b4d4b4b
1 changed files with 6 additions and 0 deletions
|
|
@ -1650,6 +1650,12 @@ export class WYSIWYG {
|
|||
}
|
||||
if (selectElement.length > 0) {
|
||||
range.collapse(true);
|
||||
if (range.commonAncestorContainer.nodeType === 1 &&
|
||||
range.startContainer.childNodes[range.startOffset] &&
|
||||
range.startContainer.childNodes[range.startOffset].nodeType === 1 &&
|
||||
(range.commonAncestorContainer as HTMLElement).classList.contains("protyle-wysiwyg")) {
|
||||
focusBlock(range.startContainer.childNodes[range.startOffset] as Element);
|
||||
}
|
||||
return;
|
||||
}
|
||||
const startBlockElement = hasClosestBlock(range.startContainer);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue