• Hi there,

    While this seems to catch SOME Classic Editor blocks, it doesn’t seem to catchy as many as I’d like. (I even tried hacking it just a tad to increase the max depth, but it didn’t seem to help.)

    Here is a basic example of post markup that I’d expect this plugin to “Convert to Blocks” automatically when loading the edit post screen (unless I’m misunderstanding something).

    <!-- wp:columns -->
    <div class="wp-block-columns"><!-- wp:column -->
    <div class="wp-block-column"><!-- wp:freeform -->
    <p>I am in the left column</p>
    <!-- /wp:freeform --></div>
    <!-- /wp:column -->
    
    <!-- wp:column -->
    <div class="wp-block-column"><!-- wp:freeform -->
    <p>And I, the right.</p>
    <!-- /wp:freeform --></div>
    <!-- /wp:column --></div>
    <!-- /wp:columns -->

    If you make a post with just this content, then activate the plugin and edit this post, it doesn’t automatically run “Convert to blocks” (and no JS errors appear).

    WP 5.7.2

    Any thoughts?

    Thanks much!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Jeffrey Paul

    (@jeffpaul)

    @madtownlems I just tested that sample code on a WP 5.7.2 install with C2B 1.0.1, Classic Editor 1.6, and Twenty Twenty-One 1.3 and see that the content gets converted to Classic Blocks within a 2 column Column Block. That’s about what I expected. What are you seeing and what other plugins and theme are you testing with?

    Thanks for the reply, Jeff. I’m not sure what’s going on but I’ll do some more thorough research and get back to you soon.

    > and see that the content gets converted to Classic Blocks within a 2 column Column Block. That’s about what I expected.

    To clarify, showing up as 2 “Classic Editor” blocks within a 2 column block is just WordPress’s default behavior.

    My expectation from the “Convert to Blocks” plugin was that the plugin would effectively click “Convert to Blocks” on each of those classic editor blocks, leaving me instead with 2 Paragraph blocks inside of 2 column blocks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Doesn’t Seem to Catch all Classic Editor Blocks’ is closed to new replies.