From 0b23d2acba90693aab912529e88cbb91c7f28d59 Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Sat, 9 Dec 2023 21:25:59 -0500 Subject: [PATCH] add 'copy raw text' context menu option --- src/utils/ContextMenus.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/utils/ContextMenus.ts b/src/utils/ContextMenus.ts index c271491..6617dab 100644 --- a/src/utils/ContextMenus.ts +++ b/src/utils/ContextMenus.ts @@ -37,6 +37,15 @@ export default { icon: "mdiIdentifier", }, }, + { + label: "Copy Raw Text", + onClick: () => { + navigator.clipboard.writeText(message.content); + }, + iconProps: { + icon: "mdiRaw", + }, + }, ]; if (canDeleteMessage) {