mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-02 10:50:15 +01:00
🚨
This commit is contained in:
parent
6b64a031f0
commit
88c666b723
8 changed files with 11 additions and 11 deletions
|
|
@ -63,14 +63,14 @@ export const genSBElement = (layout: string, id?: string, attrHTML?: string) =>
|
|||
export const jumpToParentNext = (protyle:IProtyle,nodeElement: Element) => {
|
||||
const topElement = getTopAloneElement(nodeElement);
|
||||
if (topElement) {
|
||||
const topParentElement = hasClosestByClassName(topElement, "list") || hasClosestByClassName(topElement, "bq") || hasClosestByClassName(topElement, "sb") || topElement
|
||||
const nextElement = getNextBlock(topParentElement)
|
||||
const topParentElement = hasClosestByClassName(topElement, "list") || hasClosestByClassName(topElement, "bq") || hasClosestByClassName(topElement, "sb") || topElement;
|
||||
const nextElement = getNextBlock(topParentElement);
|
||||
if (nextElement) {
|
||||
focusBlock(nextElement)
|
||||
focusBlock(nextElement);
|
||||
scrollCenter(protyle, nextElement);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const insertEmptyBlock = (protyle: IProtyle, position: InsertPosition, id?: string) => {
|
||||
const range = getEditorRange(protyle.wysiwyg.element);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue