Chapter appears untitled after uploading image right before title
In the editor, when an image is uploaded just before the title of a chapter, the chapter appears untitled in the left panel of producer page, even though there is some text with a heading 1 that should serve as the title.
Expected behavior
The chapter should have the correct title based on the text formatted with heading 1. The presence of an image should not affect the title.
Current behavior
Inserting an image just before the title causes the chapter to appear untitled, even though there is text with heading 1 that should serve as the title.
Steps to reproduce
- Create a new chapter and title it or go to an existing titled chapter
- Place the cursor just before the title text, where the title is formatted with heading 1 and upload an image
- Observe that in the left panel the chapter now appears as 'Untitled Chapter' (as in the screenshot below)
Environment
[Provide browser name and version and if you're working from a PC or Mac]
Possible solution
[Not required. Suggest a fix for the bug]