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 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,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
|
|
||||||
.treeItemWrap {
|
.treeItemWrap {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
height: 28px;
|
||||||
line-height: 28px;
|
line-height: 28px;
|
||||||
|
|
||||||
.left {
|
.left {
|
||||||
|
|
Loading…
Reference in New Issue