mirror of https://github.com/fantasticit/think.git
feat: update share content
This commit is contained in:
parent
9bea9c35b6
commit
da0f601423
|
@ -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,
|
||||
});
|
||||
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
|
||||
.treeItemWrap {
|
||||
display: flex;
|
||||
height: 28px;
|
||||
line-height: 28px;
|
||||
|
||||
.left {
|
||||
|
|
Loading…
Reference in New Issue