client: disable image-viewer when editing

This commit is contained in:
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}