allow creation of paragraph in body above/below table #2

Closed
johanneswilm wants to merge 2 commits from master into master
johanneswilm commented 2017-10-07 21:09:10 +02:00 (Migrated from github.com)

This allows using allowGapCursor = false on nodes higher up to prevent the gap cursor to be placed in them. Also, when inserting inline nodes into blocks that are not Textblock nodes, it doesn't try to directly insert the nodes, but wraps them inside a textblocknode type defined with defaultTextBlock = true in the schema.

This should not be merged directly, as I was missing a lot of knowledge about other situations in which gapcursor is to be used, so I don't know if it is breaking anything for others. Also, it seems like there already is a way to determine which textblock node is the default one, or how content should be wrapped that is being used in other places. At any rate, I hope this serves to show what kinds of additions we would need for our particular usecase.

This allows using `allowGapCursor = false` on nodes higher up to prevent the gap cursor to be placed in them. Also, when inserting inline nodes into blocks that are not Textblock nodes, it doesn't try to directly insert the nodes, but wraps them inside a textblocknode ~type defined with `defaultTextBlock = true` in the schema~. This should not be merged directly, as I was missing a lot of knowledge about other situations in which gapcursor is to be used, so I don't know if it is breaking anything for others. Also, it seems like there already is a way to determine which textblock node is the default one, or how content should be wrapped that is being used in other places. At any rate, I hope this serves to show what kinds of additions we would need for our particular usecase.
marijnh commented 2017-10-13 13:55:14 +02:00 (Migrated from github.com)

I hope patch c6824e5 address this.

I hope patch c6824e5 address this.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
prosemirror/prosemirror-gapcursor!2
No description provided.