Skip to content

Cannot get the format of the entity #3191

@haven2world

Description

@haven2world

Describe the bug
When we support formatting api on entities by setting the formattableRoots in the beforeFormat event, we cannot get the updated format when we call getFormatState

Expected behavior
The format state should reflect the format correctly if we allow to change it.

Additional context
A quick fix I found is when we call expandEntitySelections in formatSegmentWithContentModel we also push the entity's format into formatsAndSegments

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