guardian / scribe

DEPRECATED: A rich text editor framework for the web platform
http://guardian.github.io/scribe/
Apache License 2.0
3.5k stars 245 forks source link

How do you .setContent without triggering a change event? #326

Closed christopherliu closed 9 years ago

hmgibson23 commented 9 years ago

You can't currently. We always trigger a content-changed event. What's the use case?

christopherliu commented 9 years ago

I share an editor instance in a multi-document editing environment and so I reset the content every time we switch selected document.

I remove the content-changed event when switching so it's not a huge deal, but I've been getting errors on Firefox every time we switch documents, stemming from that event somehow, so I thought disabling the event would be easier than trying to diagnose the error. Guess I'll just diagnose the error...