Vanessa 2023-04-27 10:14:58 +08:00
parent 1fe22e15f4
commit 17b4d8765a
5 changed files with 35 additions and 4 deletions

View file

@ -64,7 +64,6 @@ export const turnIntoTaskList = (protyle: IProtyle, type: string, blockElement:
return false
}
export const headingTurnIntoList = (protyle: IProtyle, type: string, blockElement: HTMLElement, editElement: HTMLElement) => {
if (type !== "NodeHeading" && ["* ", "- "].includes(editElement.innerHTML.substring(0, 2))) {
const id = blockElement.getAttribute("data-node-id")