For example, given the following text:
- List item
- List item again
If the user delete the whole line of “non list”, I would like both list items to be merged into one.
autoJoin function that I can use to wrap most of the commands, e.g. backspace. However, it doesn’t seem to handle all of the cases. For example, cut with
ctrl+x doesn’t seem to be handled by the keymap, and I probably don’t want to override the default browser behavior. Similarly, what if “non list” is actually some image block that the user can drag away, causing the 2 lists to be merged together?
Will the right approach here be writing a plugin that does ‘appendTransaction’ to normalized all disjoined lists?