Add "ornament" style
The editors have requested an "Ornament" style. An ornament is a visual separator on its own line that can be used within a component to break it up. Here's an example:
chapter content chapter content chapter content.
* * *
Back to more chapter content
This style is a bit different from others, in that an ornament has fixed text: three bullets, centered. This should function as some kind of "insert ornament" action: when clicked, the ornament should appear as a new block below the current cursor position. E.g. if the cursor is in the middle of a paragraph, inserting an ornament breaks the current block at the cursor position, adds the ornament as a block below, and everything after the ornament becomes its own, new block.
I'd argue that although "Ornament" behaves differently from other styles, it nevertheless belongs in the left-hand style pane (in the "Display" category):
- Adding a brand new button to the top formatting bar is a bad use of real estate.
- Editors want to add ornaments as they're styling the whole chapter and working in the left-hand style pane anyway, so that's where they will look for the ornament style
A few thoughts:
- Perhaps we could call the style "Insert ornament" to provide an indication that it doesn't act exactly like the other styles
- Most commonly, the authors have implemented their own "ornament" as text that pulls into Wax, e.g.
* * *,
- - -, etc. So the editors will see this and have to delete it out. One alternate implementation of this would have the "Ornament" style clobber the node its applied to, replacing its contents with three bullets. However, this is drastic enough behavior that I think it's worth asking the editor to delete out whatever ornament the author has included separately.