Add Heading 5 and 6 to text style dropdown
What does this MR do and why?
Add Heading 5 and 6 to text style dropdown
In rich text editor, add Heading 5 and 6 to text style dropdown to prevent headings 5 and 6 to be switched to any other text style.
Note: No tests added because the tests in toolbar_text_style_dropdown_spec.js
already loop through TEXT_STYLE_DROPDOWN_ITEMS
so that already covers the tests for changes in this MR.
Changelog: fixed
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
- In any issue comment, switch to the rich text editor.
- Notice that the text style dropdown now has Heading 5 and 6 options as well.
- Select Heading 5 or 6 on any text.
- The text style dropdown should not be disabled and allow you to switch between Normal text and other heading styles.
Related to #477849 (closed)
Edited by Himanshu Kapoor