feat: update share content

This commit is contained in:
fantasticit 2022-04-02 22:09:54 +08:00
parent 9bea9c35b6
commit da0f601423
2 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,7 @@
import React from 'react';
import { useEditor, EditorContent } from '@tiptap/react';
import { IDocument } from '@think/domains';
import { DEFAULT_EXTENSION, DocumentWithTitle } from 'tiptap';
import { BaseKit, DocumentWithTitle } from 'tiptap';
import { safeJSONParse } from 'helpers/json';
import { CreateUser } from '../user';
@ -16,7 +16,7 @@ export const DocumentContent: React.FC<IProps> = ({ document, createUserContaine
const editor = useEditor({
editable: false,
extensions: [...DEFAULT_EXTENSION, DocumentWithTitle],
extensions: [...BaseKit, DocumentWithTitle],
content: json,
});

View File

@ -20,6 +20,7 @@
.treeItemWrap {
display: flex;
height: 28px;
line-height: 28px;
.left {