I want to open up a discussion on this and see what people think “correct” behavior here is.
Currently when a new node is created, it by default has zero styles. This results in unfriendly user behavior as the user has to learn these events and reselect their styles.
Actions that “auto” remove styles:
- Create newline, start typing in bold, backspace to remove text
- Type in bold and then hit enter to get a newline.
- New paragraph line
- Exiting blockquotes
- New list item and existing list
I think most word processors that people are use to (google docs, microsoft word, mac Mail) only change styles for you when you change cursor locations, in which you get the styles of the text to the left of the cursor. In all other cases, you retain your active styles.
This is a fairly big issue for me as my target users are mostly non technical, so any magic or deviation from the norms makes it harder to use. I also, personally, find it frustrating when I select a style, start typing, realize a mistake, backspace and my styles are gone.