client: disable image-viewer when editing

pull/64/head
fantasticit 2022-05-31 22:24:06 +08:00
parent 68c2f8ecc5
commit 0e66e9663a
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ export const EditorInstance = forwardRef((props: IProps, ref) => {
<Tocs editor={editor} getContainer={getTocsContainer} />
</div>
{protals}
<ImageViewer container={$mainContainer.current} />
{!editable && <ImageViewer container={$mainContainer.current} />}
</main>
<BackTop
target={() => $mainContainer.current}