Skip to content

Clearing inline content makes editor momentarily collapse #54

@madeleineostoja

Description

@madeleineostoja

Since ProseMirror denounces state updates, the placeholder for simpla-text doesn't show up until a little while after content is cleared. This is fine for block elements, but for inline simpla-texts the element's height collapses to 0, causing a jarring page reflow.

Related (but more minor) issue: entering content in an empty element 'pushes' the placeholder along for a bit before it's cleared.

Both issues would be solved if we could prevent the placeholder state updates from denouncing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions