ckeditor / github-writer

GitHub Writer - WYSIWYG Rich-Text Editor for GitHub, powered by CKEditor.
https://ckeditor.com/
Other
376 stars 61 forks source link

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

Open mabryl opened 1 year ago

mabryl commented 1 year ago

📝 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.