Skip to content

Cannot set an ID to blocks #17224

Closed
Closed

Description

Describe the bug
In some cases is useful to add an ID to an element. This is impossible on gutenberg.
Some blocks doesn't have the possibility to edit html, others give the "unexpected or invalid content" if I try to add an id.

To reproduce
Steps to reproduce the behavior:

  1. Create a paragraph block
  2. Edit as html
  3. Add id="cta"
  4. See error unexpected or invalid content

Expected behavior
html id should be an option if I want to use an advanced editor.
Adding an id option in block panel advanced settings should be considered

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows
  • Browser chrome
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version 76.0.3809.132
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions