Open Bug 956038 Opened 12 years ago Updated 2 years ago

[markup view] Copy text node from context menu

Categories

(DevTools :: Inspector, enhancement, P3)

enhancement

Tracking

(Not tracked)

People

(Reporter: thomas, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:26.0) Gecko/20100101 Firefox/26.0 (Beta/Release) Build ID: 20131205075310 Steps to reproduce: 1. Open inspector on this page 2. Find a node in the html tree that has an attribute 3. Double click the attribute value 4. Right click Actual results: The attribute text value is selected and a context menu appears with various options for copying the html Expected results: There should be an option named eg. 'Copy' for just copying the highlighted text / attribute value. The same goes for text nodes. Not sure if 'Cut' and 'Paste' context menu items is needed too. TBD One workaround at the moment: Use the keyboard shortcuts for Copy ;) This may be nitpicking, but as long as the attribute value/text node is highlighted after double clicking on the attribute value it's natural to have this option in the context menu.
Summary: Developer Tools: Inspector: Support copy text from context menu → Developer Tools: Inspector: Support copy text node from context menu
Component: Untriaged → Developer Tools: Inspector
OS: Mac OS X → All
Priority: -- → P2
Hardware: x86 → All
Summary: Developer Tools: Inspector: Support copy text node from context menu → [markup view] Copy text node from context menu
Version: 26 Branch → Trunk
Status: UNCONFIRMED → NEW
Ever confirmed: true
I'm glad to see that someone else has noticed this. It's frustrating to make the effort to select text from within the inline edit mode of the inspector only to find that none of the copy options in the context menu relate to the current text selection. The basic issue seems to be that the edit mode doesn't have it's own context menu; it's inheriting the options from the element. This bites me frequently with ids, classes and inline CSS urls. What compounds the problem is that depending on how you dismiss the context menu, it's easy to lose focus on the editor which discards your selection as well.
Product: Firefox → DevTools
Severity: normal → S3
Type: defect → enhancement
Priority: P2 → P3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: