code: function somethingChanged() {
                  // don't fire events if the editor is readOnly as they are false detections
                  if (editor.readOnly)
                      return;
  
                  if (timer)
                      return;
  
                  timer = setTimeout(function () {
                      timer = 0;
                      editor.fire('change');
                  }, editor.config.minimumChangeMilliseconds || 100);
              }
docs: http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#mutation-observers http://hacks.mozilla.org/2012/05/dom-mutationobserver-reacting-to-dom-changes-without-killing-browser-performance/ Avoid firing the event too often