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

View File

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