chore: establish learning module baseline

This commit is contained in:
inman committed 2026-08-16 14:58:47 +08:00
commit 2d04197f3f
2409 files changed
+533050

No files matched your search

@@ -0,0 +1,6 @@
import type { Transaction } from 'prosemirror-state';
/** Push toolbar attrs when the selection moved or marks/doc changed. */
export function shouldPushAttrs(tr: Transaction): boolean {
return tr.selectionSet || tr.docChanged || tr.storedMarksSet;
}