W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2013

[editing] table manipulation commands

From: Shezan Baig <shezbaig.wk@gmail.com>
Date: Fri, 15 Mar 2013 13:05:05 -0400
Message-ID: <CANMpiOQwxzj2VEFcOQgw3XN-JtwgiX8neCR0wVAJYgp_+J=x=A@mail.gmail.com>
To: public-webapps@w3.org
Hi,

I would like to propose adding some basic table manipulation commands
to the editing spec [1].  Something along the lines of:

execCommand("InsertColumnsBefore", false, numColumns);
execCommand("InsertColumnsAfter", false, numColumns);
execCommand("DeleteSelectedColumns", false);

execCommand("InsertRowsBefore", false, numColumns);
execCommand("InsertRowsAfter", false, numColumns);
execCommand("DeleteSelectedRows", false);

These are common table operations supported by many rich text editors,
but there doesn't seem to be any support for them in browsers.  The
"DeleteSelectedColumns" command seems a bit weird because there's no
way to actually select columns, and support for multi-range selection
seems to be going away [2], but I think for now if it deletes the
column where the caret is currently at, it should be good for now.

Another command I would like to propose is:

execCommand("JustifyColumns", false, "left");
execCommand("JustifyColumns", false, "center");
execCommand("JustifyColumns", false, "right");
execCommand("JustifyColumns", false, "justify");

Note: The JustifyColumns command wouldn't be necessary if we can
instead come up with a reasonable way to select columns.

Thoughts?

Thanks,
Shezan

[1] https://dvcs.w3.org/hg/editing/raw-file/tip/editing.html
[2] https://bugzilla.mozilla.org/show_bug.cgi?id=753718
Received on Friday, 15 March 2013 17:05:33 GMT

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