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
Add Block Transform to transform Embed blocks into Paragraph blocks. #17413
Fixes #15102 by providing a block transform to transform Embeds into Paragraphs.
Ref: #15102 (comment)
How has this been tested?
Pasting a URL into the Paragraph block automatically converts into an Embed blocks. After that, now, I'm able to transform the same Embed block into a Paragraph block. Performing an Undo action brings the Embed block back.
While working on this, I found a bug that none of the transformations of
Types of changes
While converting the Embed into Paragraph, if the caption is present, then I'm using that as the text for the link in the Paragraph. That seemed like a sensible behaviour without the data loss for the user. Happy to defer on someone who's more close to this.