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

Activity

Tom Arild Jakobsen April 26, 2017 at 7:30 AM

Looks to be working well.

  • Both headers are aligned

  • Table content is aligned

Timothy Lim April 25, 2017 at 2:32 PM

Reverted the revert. Had to make sure the latest code from 'stable' was added.

Timothy Lim April 25, 2017 at 1:37 PM

Will comment as soon as this is moved to 'Done'.

Frode Petterson April 21, 2017 at 7:31 AM

I.e. we should check that all button/tag combinations work.

Tom Arild Jakobsen April 21, 2017 at 5:09 AM

From forum:

Also, in the table content, because it don't respet any aling text, only left

Done

Details

Assignee

Reporter

Code reviewer

Original estimate

Time tracking

No time logged1h remaining

Priority

Created April 19, 2017 at 7:58 AM
Updated May 22, 2017 at 12:01 PM
Resolved April 26, 2017 at 7:30 AM