• Resolved Bob Easton

    (@bobeaston)


    Today (WP=5.3), the only Gutenberg block that supports the id= attribute is the heading block. The id attribute is a standard html attribute that can be applied to any html element. (W3C standard reference here.) In addition to headings we need to be able to apply id attributes to paragraphs, separators, and forms. Is this support in the plans for Gutenberg?

    a little extra detail… If I edit a paragraph block (for example) to include id=”foobar”, the editor responds with the message “This block contains unexpected or invalid content.” Then, it wants to either remove the id element or convert the block to an html block. I’d rather it accept the legitimate attribute.

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Gutenberg blocks need to support standard html’ is closed to new replies.