mirror of
https://github.com/fantasticit/think.git
synced 2026-10-30 22:56:06 +08:00
feat: update share content
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user