change to public fields of tag #10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "add-field-for-node-builder"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
These fields would be very useful to have available for testing,
I would like to make them available to the public.
In what situations are they useful?
github.com/ProseMirror/prosemirror-schema-list@aa6f2a6c42/test/test-commands.ts (L7-L15)Since tag returns pos, defining such a
selFor()function has the advantage that the selection can be defined declaratively, increasing the readability of the test.Ah, you are talking about
tag, notflat. I guess adding that to the return type there could make this a little more ergonomic. Addingflatseems to serve little purpose though (and is in fact incorrect, since that's not a property being added toNodeinstances, but an internally used alternative return type)@marijnh thank you for response, Certainly for my use case, only
tagwas sufficient and I could not think of a case whereflatwould be needed. removed it:a9cb60b