Content validator strips header styling

Description

If you select 'Heading 2' or 'Heading 3' paragraph format and center the text the centering will disappear when saving – it's stripped away.

Possible solution: Add 'h2' and 'h3' to H5PContentValidator::$allowed_styleable_tags

Environment

None

Acceptance Criteria

You should be able to center headings.

Update https://h5p.org/node/67849

Status

Assignee

Timothy Lim

Reporter

Frode Petterson

Funding

None

Code reviewer

Tom Arild Jakobsen

Released

None

Time tracking

1h

Fix versions

Sprint

None

Priority

High
Configure