|
@@ -1080,7 +1080,7 @@ export const fixBlockquote = (vditor: IVditor, range: Range, event: KeyboardEven
|
|
|
|
|
|
export const fixTask = (vditor: IVditor, range: Range, event: KeyboardEvent) => {
|
|
|
const startContainer = range.startContainer;
|
|
|
- const taskItemElement = hasClosestByMatchTag(startContainer, "li");
|
|
|
+ const taskItemElement = hasClosestByMatchTag(startContainer, "LI");
|
|
|
if (taskItemElement && taskItemElement.classList.contains("vditor-task")) {
|
|
|
if (matchHotKey("⇧⌘J", event)) {
|
|
|
// ctrl + shift: toggle checked
|