W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2011

Re: before/after editaction

From: Darin Adler <darin@apple.com>
Date: Tue, 30 Aug 2011 16:34:37 -0700
Cc: public-webapps <public-webapps@w3.org>
Message-id: <873B43DD-B89D-4AC2-9FA1-2F4F6C1BAF7C@apple.com>
To: Ryosuke Niwa <rniwa@webkit.org>
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:47 GMT