This commit is contained in:
parent
f5e0da0ac1
commit
cb1e6774e2
1 changed files with 3 additions and 2 deletions
|
@ -123,8 +123,9 @@ export const input = async (protyle: IProtyle, blockElement: HTMLElement, range:
|
|||
let focusHR = false;
|
||||
if (["---", "___", "***"].includes(editElement.textContent) && type !== "NodeCodeBlock") {
|
||||
html = `<div data-node-id="${id}" data-type="NodeThematicBreak" class="hr"><div></div></div>`;
|
||||
const nextBlockElement = getNextBlock(editElement);
|
||||
if (nextBlockElement) {
|
||||
// https://github.com/siyuan-note/siyuan/issues/12593
|
||||
const nextBlockElement = blockElement.nextElementSibling;
|
||||
if (nextBlockElement && nextBlockElement.getAttribute("data-node-id")) {
|
||||
if (!isNotEditBlock(nextBlockElement)) {
|
||||
focusBlock(nextBlockElement);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue