Closed Bug 1439384 Opened 8 years ago Closed 8 years ago

contextMenu API selectionText doesn't contain HTML style formating

Categories

(WebExtensions :: Untriaged, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1325814

People

(Reporter: rhubscher, Unassigned)

References

()

Details

For Notes we want the user to be able to select some text in the page and send it to its notes. Unlike copy/pasting which keep the HTML formating, it seems that selectionText of the menu.OnClickData is text only. Is there a way to explicitly ask for HTML?
Whiteboard: [design-decision-needed]
Hi Remy, this has been added to the agenda for the March 6, 2018 WebExtensions APIs meeting. Would you be able to join us? Here’s a quick overview of what to expect at the triage: * We normally spend 5 minutes per bug * The more information in the bug, the better * The goal of the triage is to give a general thumbs up or thumbs down on a proposal; we won't be going deep into implementation details Relevant Links: * Wiki for the meeting: https://wiki.mozilla.org/WebExtensions/Triage#Next_Meeting * Meeting agenda: https://docs.google.com/document/d/1n-Cbk3d6j394mObWPMhQsfIyHIL08RhC_IEV2QBV1x8/edit# * Vision doc for WebExtensions: https://wiki.mozilla.org/WebExtensions/Vision
I would introduce a new property "selectionHtml" to maintain backwards compatibility, if we decide to do this.
Introducing that is just more overhead for all context menus. Special use cases should have a way to get at the selection rather than building more into the context data. Bug 1325814 should be able to help with this use case.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
Whiteboard: [design-decision-needed]
Thanks, Shane! Because 1325814 has been approved, this bug will be removed from the March 6 2018 triage agenda.
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.