[wp-trac] [WordPress Trac] #46887: wp-columns block problem deleting content

WordPress Trac noreply at wordpress.org
Fri Apr 12 19:35:14 UTC 2019


#46887: wp-columns block problem deleting content
--------------------------+------------------------------
 Reporter:  oli835        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Editor        |     Version:  5.1.1
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------
Changes (by SergeyBiryukov):

 * component:  General => Editor


Old description:

> 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.

New description:

 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.

--

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46887#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list