[whatwg] Proposed updates for the command API's
Darin Adler
darin at apple.com
Wed Aug 13 09:21:34 PDT 2008
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
More information about the whatwg
mailing list