Hello, I noticed in the Prose Mirror example at ProseMirror basic example , you were able to implement selecting a parent node. I can’t quite figure out your code. I’m trying to figure out how to select a table and its cells, then use a button to apply styling to the table and cells. How would I do that?
Depending on what you mean by selecting cells, you might be able to take inspiration from the cell selection in prosemirror-tables – that is a custom selection class that represents a selection across a few cells in a table. Basically, ProseMirror supports different selection types (coming with text selections, which start and end in text positions, and node selections, which select a single node, by default), but allowing user code to implement additional types by subclassing Selection
.
Thank you for your help