Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Block API: Pasting content that results in a new block shouldn't be treated as inline content. #19084
When pasting text, the paste handler currently assumes that if the text doesn't have a line break, and it results in one block, it can be treated as inline text, instead.
This may be correct for core, but is not necessarily correct for plugins that may wish to transform a single line of text into a custom block.
This PR tightens the paste handler assumption to only allow a selection of blocks to be treated as an inline paste.
How has this been tested?
Tested with the sample plugin in #18390.