(
+ 'input[type="checkbox"]',
+ ),
+ );
+ const index = boxes.indexOf(target);
+ const next = toggleTaskLine(content, index);
+ if (next === content) return;
+ setContent(next);
+ clearTimeout(timerRef.current);
+ void save(next, title);
+ },
+ [isEditing, content, title, save],
+ );
+
return (
{/* Header: title + pencil toggle */}
@@ -123,7 +167,11 @@ export function NoteWidget({ instanceId, config }: WidgetProps) {
{/* Content: preview or editor */}
-