Make WordPress Core

Opened 3 years ago

Closed 13 months ago

#46887 closed defect (bug) (worksforme)

wp-columns block problem deleting content

Reported by: oli835 Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.1.1
Component: Editor Keywords:
Focuses: Cc:

Description (last modified by SergeyBiryukov)


It looks like there is a problem with columns-blocks

I generate a two-columns block and inside the columns html blocks and paragrah-blocks.

All looks pretty nice until i hit safe , close the page and return later

Wordpress now shows all colums as "error" and offers to fix or change to htmlblocks.
( When i view the code there are only columns blocks, not html or paragraph-blocks.)

Either way i tried(fix or change to html) i lost all my work (but thanks for revisions , not really :-) ).

It looks like when trying to fix it deletes all the content inside the columns.

This is an example block for that issue (copy and paste into codeview windows)

<!-- wp:columns -->
<div class="wp-block-columns has-2-columns"><!-- wp:column -->
<div class="wp-block-column"><p>Lorem ispum<br /><br />lorem ipsum</p>
<p>lorem ipsum<br />lorem ipsum<br /><br /></p></div>
<!-- /wp:column -->

<!-- wp:column -->
<div class="wp-block-column"><p>blabla bla</p>
<p>bla bla bla<br />blabla <br />blabla</p></div>
<!-- /wp:column --></div>
<!-- /wp:columns -->

in "visual editor" it shows errors and offers to fix or turn to html. Tried that and hit safe. everything looks ok. Close the page and return -> empty columns.

Change History (2)

#1 @SergeyBiryukov
3 years ago

  • Component changed from General to Editor
  • Description modified (diff)

#2 @noisysocks
13 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed

Hi @oli835! When I try this, clicking Attempt Recovery empties out the two columns. Refreshing the page doesn't change anything.

If you're still encountering this bug, could you please re-open the issue in the Gutenberg repository which is where development of the block editor happens?

Note: See TracTickets for help on using tickets.