I'm having an issue that maybe someone has run into before. I've made a simple rich text editor which edits a "model" that has an htmlText property as a string. The model is bound to a textArea and the "editor" which sets the properties of a textRange derived from the selection on the textArea. The editor provides formatting controls but no typing area, and the textArea is just for typing text. So the binding looks like this
Editor <-> Model <-> TextArea Anyway, what I'm seeing is that the first time I create some formatted htmlText, it all sets properly through the chain. The bug is where I then simply add or remove letters without changing any formatting. That causes all formatting to reset. However, if I alter the formatting in any way, it propagates through alright and all formatting is preserved. Seems like some flag is being set when formatting is changed, yet that flag is not set when it's just a text change. Does this ring a bell for anyone?

