chore: establish learning module baseline
This commit is contained in:
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;
|
||||
}
|
||||
Reference in new issue
Block a user