When opening a book, always show the first chapter open
Expected behavior
When I enter my book, I want to be able to dive into the content immediately. The same applies when going back to the book from the Preview & Export page.
Current behavior
When I enter my book, I need to then select a chapter from the left sidebar. The same applies when going back to the book from the Preview & Export page.
Steps to reproduce
- Open an existing book in Ketida that has chapters
- See that the editor is empty and you need to select a chapter from the sidebar to get started
- Go to Preview & Export
- Click 'back to book'
- See that the editor is empty and you need to select a chapter from the sidebar
Related issues
This issue is deeply linked to https://gitlab.coko.foundation/ketida/ketida/-/issues/704. The detail here is that for books which don't yet have chapters, we need to create a first blank chapter which should be open when you enter the book.