Closed Bug 151332 Opened 22 years ago Closed 3 years ago

[RFE] menu/key for "Paste as Quotation" for textarea

Categories

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

enhancement

Tracking

()

RESOLVED WONTFIX
Future

People

(Reporter: kazhik, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: helpwanted)

It's very convenient if "Paste as Quotation" is available for textarea.
Severity: normal → enhancement
Cc akkana. Akk, didn't you add something like that for Linux?
> Akk, didn't you add something like that for Linux?

Yes.  Ctrl-middleclick does a paste as quotation if the pref "middlemouse.paste"
is set (on all platforms, but it's only enabled by default on unix).  It uses
the nsIEditorMailSupport::PasteAsQuotation interface, and you can QI a text
control to nsIEditorMailSupport.   The code that handles this for middleclick is
in nsEditorEventListeners.

Probably just adding the item to the appropriate xul menu is all this would
require.  Though at least on linux, the command enabling for the clipboard items
is wonky -- paste as quotation almost never enables in mail compose windows
(there's an old long-ignored bug on that).  Maybe it works better on other
platforms.
I want this function in GUI and Shortcut Key.
If it has a shortcut key assigned,Ctrl + Shift + V will think that it is good.
Keywords: helpwanted
Target Milestone: --- → Future
Priority: -- → P3
At this point it sounds like what's needed is a decision as to which key this
should go on, where and whether to add a menu item, and then a key binding that
works on windows.  Aaron?  Do we have any keys open that could be used for this,
and do you think this is a common-enough request that it needs to take up a menu
item and a key binding slot?  Reassign it to me for the implementation, if you
like, once we decide what (if anything) is to be done.
Assignee: kin → aaronl
Summary: [RFE] "Paste as Quotation" for textarea → [RFE] menu/key for "Paste as Quotation" for textarea
Let's use Accel+Shift+V, since it's not taken, and it's what mailnews uses.
I doubt we want to add another item to the edit menu though.
Assignee: aaronl → akkana
Many web site of Japanese has BBS.
And when Japanese people post message to the BBS,
they paste the contents to response in many cases.

If (Context)Menu is only one (no shortcutkey) to access to the function,
I regard at least it as convenient.
# when this function will be useed, we will copy the text with mouse in many cases.

Now, default prefs on Windows OS is user_pref("middlemouse.paste", false);
But, when Windows users will use this function, they must set prefs
user_pref("middlemouse.paste", true);
this is not like other windows applications....
I think it is cool.
Blocks: 323166
I think that the editor has "Paste As Quotation".
Therefore, we only need UI for SeaMonkey and Firefox.
I wrote Firefox's code in bug 323166.
No longer blocks: 323496
> I wrote Firefox's code in bug 323166.

Sorry. bug 323166 -> bug 323496.
Depends on: 323496
QA Contact: sujay → editor

Mass-removing myself from cc; search for 12b9dfe4-ece3-40dc-8d23-60e179f64ac1 or any reasonable part thereof, to mass-delete these notifications (and sorry!)

Removing myself as assignee for editor bugs, since the editor project is (sadly) long gone.

Assignee: akkzilla → nobody

bug 323496 was marked as WONTFIX. So, we cannot fix this.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.