Skip to content

Auto convert to blocks #64129

Open
Open

Description

Let's slowly try to auto convert classic content to blocks.

Ideas from @mtias: let's start small, don't do it for post types without revisions, maybe opt-in for non-exact conversions.

To do list:

  • Auto convert a post on load if it meets the following conditions: (I think some work from Freeform: autoconvert on mount (opt-in) #62442 could be reused)
    • The whole post is freeform (no blocks present)
    • The post supports revisions
    • The resulting blocks (excluding block delimiters) matches with the original content exactly. We could use the existing isEquivalentHTML to compare the content without whitespace.
  • See what content fails and improve the raw handler. For example:

Cc @azaozz @mtias

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    [Feature] Convert to BlocksInternally: "raw handler"[Type] EnhancementA suggestion for improvement.[Type] Tracking IssueTactical breakdown of efforts across the codebase and/or tied to Overview issues.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions