I've been seeing text jumping during typing after applying formatting with different font sizes. Reproducing this is a little fiddly, but seems to stem from the fact that the typing attributes don't reliably pick up the style from the underlying NSAttributedString.
This change explicitly sets the typing attributes to match the attributes at the insertion point, failing over to the default editor font if the editor is empty.
I've been seeing text jumping during typing after applying formatting with different font sizes. Reproducing this is a little fiddly, but seems to stem from the fact that the typing attributes don't reliably pick up the style from the underlying NSAttributedString.
This change explicitly sets the typing attributes to match the attributes at the insertion point, failing over to the default editor font if the editor is empty.