WordPress.org

Make WordPress Core

Opened 7 months ago

Last modified 7 months ago

#46887 new defect (bug)

wp-columns block problem deleting content

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

Description (last modified by SergeyBiryukov)

Hey,

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 (1)

#1 @SergeyBiryukov
7 months ago

  • Component changed from General to Editor
  • Description modified (diff)
Note: See TracTickets for help on using tickets.