Closed Bug 93482 Opened 24 years ago Closed 23 years ago

Context menuitem paste and Ctrl+V behaves differently in tables.

Categories

(Core :: DOM: Editor, defect, P3)

x86
Windows 2000
defect

Tracking

()

VERIFIED FIXED
mozilla1.2beta

People

(Reporter: skasinathan, Assigned: mozeditor)

References

Details

(Whiteboard: EDITORBASE-; 2 days?)

1. Right Click at the end of the content in a table cell and in the context menu select "Copy". (Note that I filed a seperate bug for the selection - 93322) 2. Select another empty cell and right Click to paste. It just pastes the content. Good! Select another empty cell and press ctrl+v to paste. Note that entire cell (along with border and content) are pasted. I'm not sure what's the correct behaviour, but I would expect both to behave the same way. Build: 7-27 branch commercial build on win 2k.
assigning to joe for the moment
Assignee: beppe → jfrancis
Priority: -- → P3
Target Milestone: --- → mozilla1.0
Charley--will your fix also fix this bug? (right-click in tables)
The fact that the right click in a table, then copy works at all is a side effect of bug 93322, so when that's fixed, you won't get the behavior described here. But using 6.1, which doesn't have this fix, I can't reproduce what you describe anyway. When you say "Select another empty cell and ...", exactly how are you selecting: Ctrl+click on cell or just using right click (which automatically selects cell contents) or drag selecting contents or ??? I think this will disappear anyway when 93322 is fixed.
Depends on: 93322
I'm so confused. I see the *opposite* behavior described in thsi bug. when I right click in 6.1 and copy, then paste, i get a whole nested table. But when I select all the text in a cell, then copy/paste, i get just the content. Anyone else see this?
Joe: In 6.1, what happens when you paste depends on what's selected in destination cell. If you really "Select another empty cell" using Ctrl/Cmd+click on cell first, then it appears that just the contents are replaced (I get that using either the context menu or Ctrl+V). But if you simply click in the cell (so no cell is selected), I see the nested table paste. I can't test current version now -- I'm building.
Status: NEW → ASSIGNED
Whiteboard: EDITORBASE; 2 days?
Bugs targeted at mozilla1.0 without the mozilla1.0 keyword moved to mozilla1.0.1 (you can query for this string to delete spam or retrieve the list of bugs I've moved)
Target Milestone: mozilla1.0 → mozilla1.0.1
removing EDITORBASE- per meeting
Summary: Context menuitem paste and Ctrl+V behaves differently. → Context menuitem paste and Ctrl+V behaves differently in tables.
Whiteboard: EDITORBASE; 2 days? → EDITORBASE-; 2 days?
The trunk is the wave of the future!
Target Milestone: mozilla1.0.1 → mozilla1.1beta
Target Milestone: mozilla1.1beta → mozilla1.2beta
The days of having a half dozen milestones out in front of us to divide bugs between seem to be gone, though I dont know why. Lumping everything together as far out as I can. I'll pull back things that I am working on as I go.
I don't think there's any bug here now, i.e., it was fixed by fixing bug 93322. When you right click past end of content in a table, we don't select anything. Thus the user must decide what to select first: the entire cell (e.g., by Ctrl/Cmd+Click) or just some content by dragging over text. Depending on what is copied, pasting behavior from either context menu or Ctrl/Cmd+V is the same and seems to be correct: 1. A new nested table if clipboard contained entire cell(s), or 2. if you select another cell before pasting, the entire cell is replaced. I'm seeing other bugs concerning pasting of cell content or undoing afterward, but I'll file separate bugs on those issues.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
verify fix : context paste and ctrl+V work the same in respect to the initial issue
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.