W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2008

[whatwg] Proposed updates for the command API's

From: Darin Adler <darin@apple.com>
Date: Wed, 13 Aug 2008 09:21:34 -0700
Message-ID: <26D37B4B-20A1-4489-9716-FBC0068A580C@apple.com>
Not sure this will be useful, but I thought it worth mentioning.

Folks working on WebKit haven't proposed any execCommand extensions.  
But WebKit has a lot of editing commands that are alongside the  
execCommand ones, unavailable from JavaScript because we've done that  
intentionally to avoid compatibility problems. The relevant source  
code is here:

     http://trac.webkit.org/browser/trunk/WebCore/editing/EditorCommand.cpp

In a function named createCommandMap. The commands supported from  
JavaScript say "supported" and the ones not say  
"supportedFromMenuOrKeyBinding". The map contains 43 execCommand  
commands, and 75 others that are not exposed to execCommand. This  
includes commands such as AlignCenter and ToggleUnderline.

     -- Darin
Received on Wednesday, 13 August 2008 09:21:34 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:04 UTC