Skip to content

Commit

Permalink
IBX-3096: not_blank_richtext page attribute validator (#1903)
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikaK committed Feb 22, 2023
1 parent 0f368e5 commit 3e83312
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/content_management/pages/page_block_validators.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,15 @@ The following block validators are available:
- `required` - checks whether the attribute is provided
- `regexp` - validates attribute according to the provided regular expression
- `not_blank` - checks whether the attribute is not left empty
- `not_blank_richtext` - checks whether a `richtext` attribute is not left empty
- `content_type` - checks whether the selected Content Types match the provided values
- `content_container` - checks whether the selected Content item is a container

!!! note

Do not use the `required` and `not_blank` validators for `richtext` attributes.
Instead, use `not_blank_richtext`.

For each validator you can provide a message that displays in the Page Builder
when an attribute field does not fulfil the criteria.

Expand Down

0 comments on commit 3e83312

Please sign in to comment.