Skip to content

Text wrapping function around embed blocks #2677

@footstep002

Description

@footstep002

Have you checked for an existing issue?

Use case

Either it's a image or a custom embed block, texts thats next to that block are always aligned to the bottom of the same line as embed block is positioned. It's okay when you are writing text in phone screen when portrait mode. But if you are writing in phone screen in landscape mode or on a larger screen like a tablet when there is a lot of wide space to work with, this could give bad user experience.

Proposal

It would be nice if text surrounding embed blocks could repositioned to move up to the same line as top edge of embed blocks, and text filled from there. Overriding EmbedBuilder's buildWidgetSpan method and setting WidgetSpan's alignment attribute to PlaceholderAlignment.top could make similar effect. But it only fills a single line of text at the top side of embed block, not filling the whole height to the bottom edge of embed block. So it leaves large chunk of space to the next line that's below the bottom edge of embed block. So using PlaceholderAlignment.top is not enough to remedy this problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions