Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #260203

    Hi,

    whenever i create a Text Block with the advanced layout builder to enter some HTML it does not keep the formatting for later editing.
    When i create a table that i want to edit later like:

    <table style="width:300px">
    <tr>
      <td>Jill</td>
      <td>Smith</td>
      <td>50</td>
    </tr>
    <tr>
      <td>Eve</td>
      <td>Jackson</td>
      <td>94</td>
    </tr>
    </table>

    After i saved this Text Block and then want to edit it i get:

    
    <p> </p><p> </p><p> </p><p> </p><table style="width: 300px;"><tbody><tr><td>Jill</td><td>Smith</td><td>50</td></tr><tr><td>Eve</td><td>Jackson</td><td>94</td></tr></tbody></table>
    

    That increases the time i’d need to edit something like 100 times depending on the size.
    Is there a way to fix that?

    All i can do is to create a text file on my computer everytime i create a page and keep it updated everytime i want to make changes.
    That is really annoying.

    #260324

    Hey Flikk!

    Yes, that is correct. WordPress in general will modify any html formatting unless you always keep your view on the text tab.

    For code heavy sections you should use the Code element instead.

    Best regards,
    Devin

    #260720

    Hi,

    i tried using the Code element and when i go back to edit it i get:

    <table style="width:300px">
    <tr>
    <td>Jill</td>
    <td>Smith</td>
    <td>50</td>
    </tr>
    <tr>
    <td>Eve</td>
    <td>Jackson</td>
    <td>94</td>
    </tr>
    </table>

    It is way better then the Text Block element but still removing all the whitespaces infront of each line.
    Guess i still have to save larger code sections in text files.
    Or is there any other way?

    #262221

    Hey!

    I recommend to use the table shortcode or http://tablepress.org/ if you want to create tables.

    Cheers!
    Peter

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.