In Composer, under Edit, the Paste submenu is missing on win32 and mac builds
Do we agree on what should go into this menu?
My suggestion was to get the available clipboard formats and build a submenu
based on those.
this should actually be in future, I meant to do that when I submitted it.
One special paste function should be 'paste > xxxxx selection order' or
something described like that, where xxxx could be any object. The point behind
this is to allow the user to paste the selected table cells, or list items (as
examples) in the order that they were selected.
So, if a user has a table like this:
they can select 'a' 'c' 'b' 'd' and get a resulting paste of:
not, what they would currently get:
also, in a list, if a user drag-selects from the bottom to the top, I would want
to be able to Paste-special a reversed list.
Oh come on, you're being unrealistic now. Even beppe's suggestion is borderline,
and pasting lists in reverse order makes no sense.
Perhaps I should add that these kinds of features are candidates for whatever
kind of implementation we use to replace Java plugins: pluggable JS transactions,
see bug 57292 and bug 58807
This is very important when pasting table elements. We need to allow a user to
paste "As Columns", "As Rows" etc. when clipboard contains table cells.
I'll try to do this for 0.9 as part of table copy/paste work
*** Bug 59115 has been marked as a duplicate of this bug. ***
Updating summary to cover table issues.
Can you describe how this feature will work? Thanks.
I think the basic table-pasting behavior should be:
Any original row/column relationships of cells in their source table is ignored,
unless the entire table was selected when copied to the clipboard.
[jfrancis: how can we determine that informtion?]
If that is true, then the paste will always be the complete original table.
So "Paste Special" options only apply when cells were selected, not the entire
table. Rules for pasting cells:
1. Cells are pasted in proper "bidi" order: Row-wise from left to right (for
"left" order, or right to left for "right" order), going from top row to bottom.
2. If pasting into a table with selected cells, replace each selected cell with
the cells found in the clipboard in the order they are encountered on the
Question: What to do if number of cells in
source is > number of selected cells? I vote we simply don't paste everything.
The Paste Special submenu would allow these options:
1. "Insert New table". User is prompted with a small dialog similar to
"Insert Table" so they can tell us how many columns and rows. A new table
is created and if pasting inside a table, it would be a nested table.
2. "Paste as Rows". Insert new rows, taking each cell from the source and
raveling them so the number of cells in each new row is same as table pasted
into (the destination table). When we run out of cells to paste, the current
row is automatically filled with empty cells to keep number of cells/row
3. "Paste as Columns" is very similar, but creates new columns with
appropriate empty paddingcells to keep table structure.
Pasting as Rows or Columns is enabled only if pasting into an existing table,
of course, and also only if there are no selected cells in destination table.
4. Pasted cells retain the same attributes (background color, etc.) as they had
in the source *except* COLSPAN and ROWSPAN because that would create a nightmare
in figuring out how to paste! I suggest removing all COLSPAN, ROWSPAN in source
cells, but not, of course, if source is the entire table.
In addition to all the table features Charley describes, Paste Special will also
show a list of all of the different kinds (flavors) of data on the clipboard.
For example, if you copy some cells from a spreadsheet, it might put the
following flavors on the system clipboard:
* raw text
* styled text (RTF?)
* jpg image
* bitmap image
* internal/proprietary flavor
Of these, we could might list these in the Paste Special menu:
We probably would be pasting the data as html or text by default but if you
really wanted another flavor (like to get the image) then you could choose that
from this menu.
If the data is copied by us (in Navigator or Composer), we can also offer other
options like "selection order" or "column" or "row" as described above.
Robin--does that help?
I am doing all UI and table-related work. Brade is more expert for D&D and
clipboard matters and will help with clipboard flavors issues.
moving to mozilla1.0
Did we really intend to put this work off? All UI is done as a new "Save As"
submenu under top leve "Edit":
Table (or "Nested Table" if selection is inside existing table)
Kathy: Is it that hard to detect the "text" vs "image" vs "html" on the
clipboard to do the firt 2 "Paste As" menu items?
If we don't do the table items (Row, Column, Table in "Paste As" submenu),
pasting into tables will be very poor: we would always have to paste as a nested
table, I guess.
Since UI is checked in, beppe said it's ok to work on this for 0.9.2 (0.9.1
would be even better) if we have the time.
We probably won't have time for this, so the task is to remove the "Paste As"
adding myself to cc list
Here's the patch to remove the menuitem:
RCS file: /cvsroot/mozilla/editor/ui/composer/content/editorOverlay.xul,v
retrieving revision 1.177
diff -u -r1.177 editorOverlay.xul
--- editorOverlay.xul 2001/06/01 23:40:34 1.177
+++ editorOverlay.xul 2001/06/06 22:18:26
@@ -318,6 +318,7 @@
<menu id="menu_pasteAs" label="&pasteAs.label;"
<menuitem id="menu_pasteText" label="&pasteTextCmd.label;"
@@ -329,6 +330,7 @@
<menuseparator id="edEditMenuSep2" />
a= email@example.com for checkin to the trunk.
(on behalf of drivers)
Removal of menuitem checked in. Implementation of feature move to next version.
My suggestion to paste selected cells would be the same shape as the source
a b c
d e f
g h i
if I copy
and I can paste as
Why do I want to change it to either column or row??? IMHO, it make no sense to
spam composer change
Agree with EDITORBASE-, removing EDITORBASE designation
*** Bug 128309 has been marked as a duplicate of this bug. ***
This bug report is registered in the SeaMonkey product, but has been without a comment since the inception of the SeaMonkey project. This means that it was logged against the old Mozilla suite and we cannot determine that it's still valid for the current SeaMonkey suite. Because of this, we are setting it to an UNCONFIRMED state.
If you can confirm that this report still applies to current SeaMonkey 2.x nightly builds, please set it back to the NEW state along with a comment on how you reproduced it on what Build ID, or if it's an enhancement request, why it's still worth implementing and in what way.
If you can confirm that the report doesn't apply to current SeaMonkey 2.x nightly builds, please set it to the appropriate RESOLVED state (WORKSFORME, INVALID, WONTFIX, or similar).
If no action happens within the next few months, we move this bug report to an EXPIRED state.
Query tag for this change: mass-UNCONFIRM-20090614
*** This bug has been confirmed by popular vote. ***