ckeditor/github-writer

Make the header button display the last chosen value when toggling between heading and paragraph

mabryl opened this issue ยท 0 comments

๐Ÿ“ Provide a description of the new feature

When a piece of text is styled as either H1, H2. H4, H5, H6 (basically any heading except H3 which is now the default option for headings) and a user presses the header button to remove the formatting associated with the heading, the text changes to a paragraph, as expected.

When the header button is pressed again the text always switches to H3, regardless of which heading style was chosen before.

When the text was styled using a specific heading style, it should โ€œrememberโ€ which heading it was before it was switched to being a paragraph.

Link to internal discussion about this topic on Slack:
https://cksource.slack.com/archives/C035YHT5ZJQ/p1668693447739259

Gif for reference:

headings


If you'd like to see this feature implemented, add a ๐Ÿ‘ reaction to this post.