Have placeholder 'Chapter title' styled as H1 for title in new chapters
Context
This issue is closely related to #579 (closed) and both could likely be tackled at the same time.
When you add a new chapter, the title is untitled and there is no placeholder for the actual title, so it's very difficult to add a new title for it without deleting the first element (by doing enter twice to exit the block, which deletes the block, which is not good because I need that element) or adding something to the first element, adding blank lines to the first element above the text you adding, then hitting enter twice. It's not really intuitive and every chapter will need an H1 so it should be easier to add to new chapters.
Proposal
Add [Title] styled as H1 to every new chapter.
Relatedly see #579 (closed) about having placeholder headings, and #561 about not deleting empty blocks on double enter.
Design
Implementation (if applicable)
-
https://gitlab.coko.foundation/ketida/server/-/blob/main/controllers/helpers/bookComponentContentCreator.js#L23:
if there is not chapter title then the placeholder ofChapter Title
orPart Title
should be used.
The decision between which of these two, should be made based on ifbookComponent.componentType === 'part' or bookComponent.componentType === 'chapter'