So, to follow up with myself...

I ended up fixing this by unhooking bidirectional binding and instead
use a regular Event.CHANGE listener on the textArea. There was some
wack binding that was getting fired off right around where
UITextField's validateNow() method was getting called. Unhooking the
bind and only having the textArea update the model when it is typed in
made it work properly.

--- In [email protected], "bithroop" <[EMAIL PROTECTED]> wrote:
>
> 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?
>


Reply via email to