Thanks for the reply. I am actually interested in finding the class/method in the code that inserts the new character I typed into the DOM.
I am debugging using hosted-gwt, and it seems EditorEventHandler.handleNormalTyping returns true, which means that the event is handled and browser doesn't need to handle it. If this is the case, then there is presumably some code that updates the DOM with the new character? Thanks. > If you need to get notified whenever user enters some text - you can lookinto WaveTitleHandler class for example. On Wed, Apr 25, 2012 at 4:25 PM, Dylan Dandelion <[email protected]>wrote: > I am looking at the source code trying to figure out exactly how the > editor's DOM gets updated when I type a character or make change. > > I have read the design document at: > http://www.waveprotocol.org/protocol/design-proposals/editor > > It seems EditorEventHandler.handleNormalTyping get called. This then goes > into CMutableDocument.hackConsume and ContentDocument.consumeLocal which > modifies the document. > > I am still trying to find the code that modifies the DOM, and what calls > it. Any pointers or hints on where I should look into? > > Thanks. >
