I am trying to implement indent/undent nodes using tab for paragraphs.
For paragraphs I am just pre-pending 4 spaces for indent and removing 4 spaces (if they exist) for undent.
I have it working for single lines but for multi line selections I am not sure how to get the selected nodes.
Something like this would be great:
Which could return an array of nodes based on the selection [node1, node2, …];
Once I have this i can apply the insertText of 4 spaces on each line.
Is there a way to get the selected nodes and iterate over them?
Also if there is a universal way to indent paragraphs that would be better than adding whitespace.
Also list items indent without creating a sublist would also be a great feature.
Eg just indent without any style change to the bullet.