From ec6f3e51bb7f33594c7d0151fc3bf1f09db4115a Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Mon, 27 Sep 2021 13:36:58 +0200 Subject: feat: get org text from emacs --- components/contextmenu.tsx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'components/contextmenu.tsx') diff --git a/components/contextmenu.tsx b/components/contextmenu.tsx index 755bd9d..39b1895 100644 --- a/components/contextmenu.tsx +++ b/components/contextmenu.tsx @@ -55,6 +55,7 @@ export default interface ContextMenuProps { scope: { nodeIds: string[] } deleteNodeInEmacs: (node: OrgRoamNode) => void createNodeInEmacs: (node: OrgRoamNode) => void + getOrgText: any } export const ContextMenu = (props: ContextMenuProps) => { @@ -69,6 +70,7 @@ export const ContextMenu = (props: ContextMenuProps) => { openNodeInEmacs, deleteNodeInEmacs, createNodeInEmacs, + getOrgText, } = props const { isOpen, onOpen, onClose } = useDisclosure() const copyRef = useRef() @@ -157,6 +159,7 @@ export const ContextMenu = (props: ContextMenuProps) => { Permenantly delete note )} + getOrgText(node)}>Preview -- cgit v1.2.3