Skip to content

[Bug]: Restrict block and editor validations to the content area #165

@troychaplin

Description

@troychaplin

Prerequisites

  • I have searched existing issues to ensure this bug hasn't been reported already
  • I have tested with the latest version of the plugin
  • I have disabled other plugins to rule out conflicts

Bug Details

When working with a block theme the validation checks run in a few undesirable ways.

  • When editing a page and showing the template the page can always be saved, even when there are errors in the content. The icon for the errors and warnings are displayed properly, as well as the messages, this issue is related directly to the post locking.
  • When working on a block theme in the site editor using a block that does not validation will not display an error or warning icon or message, nor will it block publishing. But when editing a page and showing the template, those errors are warnings are displayed but cannot be fixed.

Maybe an additional option in the settings to enable the check in the site editor could be helpful here. This would require templates to adhere to the same standards as the content, while allowing smaller config changes such as allowing H1 in the site editor, but not in the content area.

Block Type Affected

Not block-specific

Specific Block Name

No response

Issue Category

Validation Logic Error

Steps to Reproduce

N/A

Supporting Info (optional)

No response

Environment (optional)

No response

Additional Context (optional)

No response

Metadata

Metadata

Assignees

Labels

bugAdded to bug report issues on submissionneeds-triageAdded to bug report issues on submission

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions