Re: before/after editaction

On Aug 30, 2011, at 4:13 PM, Ryosuke Niwa wrote:

> On Tue, Aug 30, 2011 at 4:08 PM, Darin Adler <darin@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

Received on Tuesday, 30 August 2011 23:36:15 UTC