mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 10:00:13 +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;
|
||||
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.textContent.startsWith("[!") && parentHTML) {
|
||||
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);
|
||||
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({
|
||||
protyle,
|
||||
selectsElement,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue