-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto convert to blocks #64129
Comments
Another further thought on opt-in / opt-out: we could add a flag in |
Been looking / thinking about this a bit and have few questions/comments:
|
Let's say we run a multisite. There can be various combinations among sites: a) run Gutenberg and have posts, pages (use block themes); b) run Gutenberg but use ACF on Custom Post types, c) run legacy themes with Classic editor on posts and pages. I understand that suggested option As conversion to blocks is inevitable, this might not cause any real problem. However there can be some situations to consider:
What would be very helpful with |
@mtias Or we move this conversation there, up to you. |
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:
isEquivalentHTML
to compare the content without whitespace.div
elements togroup
(use a raw transform in block.json). Maybe even include other tags because the group block supports a custom tag name. Also match class name etc.id
on a paragraph etc.Cc @azaozz @mtias
The text was updated successfully, but these errors were encountered: