Closed Bug 1331752 Opened 7 years ago Closed 7 years ago

Support {Ctrl,Cmd}-Shift-v for pasting unformatted text

Categories

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

44 Branch
Unspecified
Windows
defect

Tracking

()

RESOLVED DUPLICATE of bug 1327798
Tracking Status
platform-rel --- +
firefox50 --- affected
firefox51 --- affected
firefox52 --- wontfix
firefox53 --- affected

People

(Reporter: cpeterson, Unassigned)

References

Details

STR:
1. In a Google Doc, copy some formatted text.
2. Press the Windows keyboard shortcut CTRL+SHIFT+V to paste the plain text without formatting back into the Google Doc.

RESULT:
The formatted rich text is pasted instead of plain text.

CTRL+SHIFT+V in Google Docs works correctly in Chrome. In Edge, CTRL+SHIFT+V doesn't paste any text.
I didn't know about Ctrl-Shift-v! Michael, you (reluctantly) know about pasting; can you take a look here?
platform-rel: ? → +
Flags: needinfo?(michael)
(In reply to Andrew Overholt [:overholt] from comment #1)
> I didn't know about Ctrl-Shift-v! Michael, you (reluctantly) know about
> pasting; can you take a look here?

As far as I know, we don't have an editor command for un-formatted pasting, which would explain why that keyboard shortcut doesn't do anything for us. It shouldn't be too difficult to add a command like that however, I would think.
Flags: needinfo?(michael)
CTRL+SHIFT+V on Windows and CMD+SHIFT+V on Mac are standard keyboard shortcuts for unformatted pasting of formatted text.
I suspect we want to move this to a different component but I'm not sure what's best.
Priority: -- → P3
Summary: CTRL+SHIFT+V pastes formatted text into Google Doc instead of plain text → Support {Ctrl,Cmd}-Shift-v for pasting unformatted text
I think that this is an editor bug.
Component: Serializers → Editor
Copying formatted HTML from a web page will be correctly pasted into a Google Doc without formatting by Ctrl+Shift+V. The problem only seems to affect rich editors, such as copying from Google Doc or the Mana Confluence editor into Google Doc.
We already implement this and it works fine in most cases for a simple test such as:

data:text/html,<body contenteditable="true"><b>Bold</b> Test</body>

Possibly something specific to Google docs? Does it try to override the shortcut and perform its own operation?
See Also: → 1327798
Mass wontfix for bugs affecting firefox 52.
When I test this today using the latest Nightly, I cannot reproduce this.  I think that this is fixed by bug 1327798.

If this isn't fixed by 54 or 55, please reopen this.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.