From 3fe45ee80f267c8c31379ae9a1be72f33814b3ce Mon Sep 17 00:00:00 2001 From: fantasticit Date: Sun, 24 Apr 2022 20:55:40 +0800 Subject: [PATCH] feat: add quick edit button --- .../src/components/document/reader/index.tsx | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/packages/client/src/components/document/reader/index.tsx b/packages/client/src/components/document/reader/index.tsx index 0bb32704..743fc45b 100644 --- a/packages/client/src/components/document/reader/index.tsx +++ b/packages/client/src/components/document/reader/index.tsx @@ -100,6 +100,26 @@ export const DocumentReader: React.FC = ({ documentId }) => {
+ {authority && authority.editable && ( + window.document.querySelector('.Pane2')} + > + + + )} window.document.querySelector('.Pane2')} /> );