diff --git a/src/ui/components/elements-inspector/elements.tsx b/src/ui/components/elements-inspector/elements.tsx index 06f5eda6c..32f596a95 100644 --- a/src/ui/components/elements-inspector/elements.tsx +++ b/src/ui/components/elements-inspector/elements.tsx @@ -240,7 +240,7 @@ class ElementsRow extends PureComponent { getContextMenu = (): Array => { const {props} = this; - const items: Array = [ + let items: Array = [ { type: 'separator', }, @@ -269,6 +269,16 @@ class ElementsRow extends PureComponent { }, }, ]; + items = items.concat( + props.element.attributes.map(o => { + return { + label: `Copy ${o.name}`, + click: () => { + clipboard.writeText(o.value); + }, + }; + }), + ); for (const extension of props.contextMenuExtensions) { items.push({