On Aug 30, 2011, at 4:13 PM, Ryosuke Niwa wrote: > On Tue, Aug 30, 2011 at 4:08 PM, Darin Adler <da...@apple.com> wrote: >> How would this work with undo? > > That's a debatable point. Presumably, we'll be adding undo/redo events as > well so we could not fire before/after edit action events for > execCommand('undo') and execCommand('redo'). I know it's kind of ugly but I > think undo and redo are very special commands.
My question was not about the undo command. I meant that if I implemented a handler for the aftereditaction event that changed b tags to strong tags, how would the undo machinery undo what I had done? -- Darin