• Resolved jastea

    (@jastea)


    Hello,

    I put in basic html like <center> <br> <b> < img > and < a > etc in my tables and they work until I go back to editing them. When I even just hover over the centered and formatted table I want to edit, it resets to a left-aligned table that retains only the <b> and <br> tags but loses everything else.

    How do I prevent this without having to copy and save the code and paste it each time I want to make a change?

    Thank you for your time!

    • This topic was modified 5 years, 11 months ago by jastea.
    • This topic was modified 5 years, 11 months ago by jastea.
    • This topic was modified 5 years, 11 months ago by jastea.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Imtiaz Rayhan

    (@imtiazrayhan)

    Hi @jastea,

    I am really sorry to hear that.

    We will work on it and come up with a fix as soon as possible.

    I will let you know here as soon as we have a fix.

    Regards.

    Hi, thank you for your quick response to my ‘Suggestion: Duplicate existing row or col’topic. I am also having the issue that jastea mentions here. That is, html code getting changed through some automatic process (tinymce?) in ways that break the content. The idea of rendering the html area after you enter it and click off the cell is a nice one, but it somehow introduces changes, and it may be better to just leave the custom html cells as raw text. Example:

    (1) Lets say I enter the following html in an html cell:

    <h3>Dr. Craig Smith</h3>
    
    <span>New</span>
    
    <h4><a href="https://example.com">pdf resume</a></h4>
    
    <h5>He trained in internal medicine at the University of Oregon Health Sciences (UOHS) and pulmonary critical care medicine at UOHS and the University of Southern California.<h5>

    (2) This works fine and the preview works. I save the table.
    (3) I embed the table on another wordpress page on my site
    (4) I visit the page, and click on the ‘edit table’ link below the table, which takes me back to WP Table Builder.
    (5) In WP Table Builder, my html code has now been changed to this:

    Dr. Craig Smith<span>New</span><a href="https://example.com">pdf resume</a>He trained in internal medicine at the University of Oregon Health Sciences (UOHS) and pulmonary critical care medicine at UOHS and the University of Southern California.

    Heading tags and spacing between lines are gone. It may be that at some point WP Table Builder stops treating the area as custom html and starts treating it as text.

    • This reply was modified 5 years, 10 months ago by Will Heublein.
    • This reply was modified 5 years, 10 months ago by Will Heublein.
    • This reply was modified 5 years, 10 months ago by Will Heublein.
    • This reply was modified 5 years, 10 months ago by Will Heublein. Reason: format code
    Plugin Contributor erdembircan

    (@erdembircan)

    Hello @wheublein,

    We are investigating the issue and will come up with an update on the situation.

    Best regards.

    Plugin Contributor erdembircan

    (@erdembircan)

    Hello @wheublein and @jastea,

    We fixed the issue by adding more allowed parent and child elements to custom html element. For security concerns, allowing all html parent and children tags will not be wise. And for empty line conversions, since in HTML, empty lines between elements don’t effect the visual style of DOM, this empty lines are removed and translated into br tags as they should in order to keep the visual style of the text editor persistent at its HTML equivalent.

    Best regards.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘HTML Resets’ is closed to new replies.