mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 16:58:49 +01:00
This commit is contained in:
parent
d3200bda10
commit
05b43aa2b0
1 changed files with 2 additions and 1 deletions
|
|
@ -1254,7 +1254,8 @@ export class WYSIWYG {
|
|||
endBlockElement = hasClosestBlock(range.endContainer);
|
||||
}
|
||||
if (startBlockElement && endBlockElement && !endBlockElement.isSameNode(startBlockElement)) {
|
||||
if (range.startContainer.nodeType === 1 && (range.startContainer as HTMLElement).tagName === "DIV" && (range.startContainer as HTMLElement).classList.contains("protyle-attr")) {
|
||||
if ((range.startContainer.nodeType === 1 && (range.startContainer as HTMLElement).tagName === "DIV" && (range.startContainer as HTMLElement).classList.contains("protyle-attr")) ||
|
||||
event.clientY > mouseUpEvent.clientY) {
|
||||
setFirstNodeRange(getContenteditableElement(endBlockElement), range);
|
||||
} else if (range.endOffset === 0 && range.endContainer.nodeType === 1 && (range.endContainer as HTMLElement).tagName === "DIV") {
|
||||
setLastNodeRange(getContenteditableElement(startBlockElement), range, false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue