Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix: Blocks: Make backspace behavior of quote, verse and performated consistent #7958
In list, heading, and paragraph if we had a paragraph before and pressed backspace the contents of the blocks would be merged with the paragraph. If we had a block of the same type before, the contents would be merged on backspace. And if had a paragraph after the block and pressed backspace there the contents of the paragraph would be appended to the contents of the block.
These behaviors make sense but on the quote, verse and performated they were not available.
This PR adds simple merge functions to each of the three blocks and passes the onMerge handler to the RichText component they use.
How has this been tested?
For each of the 3 blocks ( quote, verse and performated ) I made the following stepts: