mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 16:40:13 +01:00
This commit is contained in:
parent
163a809758
commit
22a56c2bcf
1 changed files with 1 additions and 0 deletions
|
|
@ -18,6 +18,7 @@ export const turnIntoTaskList = (protyle: IProtyle, type: string, blockElement:
|
||||||
} else if (contextStartIndex > 0 && contextStar2tIndex > 0) {
|
} else if (contextStartIndex > 0 && contextStar2tIndex > 0) {
|
||||||
contextStartIndex = Math.min(contextStartIndex, contextStar2tIndex);
|
contextStartIndex = Math.min(contextStartIndex, contextStar2tIndex);
|
||||||
}
|
}
|
||||||
|
editElement.removeAttribute("placeholder");
|
||||||
const isDone = editElement.innerHTML.substring(1, 2).toLowerCase() === "x";
|
const isDone = editElement.innerHTML.substring(1, 2).toLowerCase() === "x";
|
||||||
if (blockElement.parentElement.classList.contains("li") &&
|
if (blockElement.parentElement.classList.contains("li") &&
|
||||||
blockElement.parentElement.childElementCount === 3 // https://ld246.com/article/1659315815506
|
blockElement.parentElement.childElementCount === 3 // https://ld246.com/article/1659315815506
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue