mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 18:10:12 +01:00
This commit is contained in:
parent
a053b51a41
commit
c3b30088b6
1 changed files with 3 additions and 2 deletions
|
|
@ -332,7 +332,7 @@ export const enter = (blockElement: HTMLElement, range: Range, protyle: IProtyle
|
||||||
currentElement = item;
|
currentElement = item;
|
||||||
selectsElement.push(item);
|
selectsElement.push(item);
|
||||||
});
|
});
|
||||||
if (currentElement.parentElement.classList.contains("bq") && currentElement.parentElement.childElementCount === 3 &&
|
if (currentElement.parentElement.classList.contains("bq") && currentElement.parentElement.childElementCount > 2 &&
|
||||||
currentElement.previousElementSibling.classList.contains("p") && currentElement.classList.contains("p") &&
|
currentElement.previousElementSibling.classList.contains("p") && currentElement.classList.contains("p") &&
|
||||||
currentElement.previousElementSibling.textContent.startsWith("[!") && parentHTML) {
|
currentElement.previousElementSibling.textContent.startsWith("[!") && parentHTML) {
|
||||||
const parentId = currentElement.parentElement.getAttribute("data-node-id");
|
const parentId = currentElement.parentElement.getAttribute("data-node-id");
|
||||||
|
|
@ -347,7 +347,8 @@ export const enter = (blockElement: HTMLElement, range: Range, protyle: IProtyle
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
transaction(protyle, doOperation, undoOperation);
|
transaction(protyle, doOperation, undoOperation);
|
||||||
if (currentElement.parentElement.classList.contains("sb") && currentElement.parentElement.getAttribute("data-sb-layout") === "col") {
|
if (currentElement.parentElement.classList.contains("sb") &&
|
||||||
|
currentElement.parentElement.getAttribute("data-sb-layout") === "col") {
|
||||||
turnsIntoOneTransaction({
|
turnsIntoOneTransaction({
|
||||||
protyle,
|
protyle,
|
||||||
selectsElement,
|
selectsElement,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue