tiptap: default show toc

This commit is contained in:
fantasticit 2022-05-10 16:05:48 +08:00
parent ef7c23232d
commit 9f3e766810
1 changed files with 2 additions and 2 deletions

View File

@ -4,9 +4,9 @@ import { Collapsible, Button } from '@douyinfe/semi-ui';
import styles from './index.module.scss'; import styles from './index.module.scss';
import { useToggle } from 'hooks/use-toggle'; import { useToggle } from 'hooks/use-toggle';
export const TableOfContentsWrapper = ({ editor, node, updateAttributes }) => { export const TableOfContentsWrapper = ({ editor }) => {
const [items, setItems] = useState([]); const [items, setItems] = useState([]);
const [visible, toggleVisible] = useToggle(false); const [visible, toggleVisible] = useToggle(true);
const maskStyle = useMemo( const maskStyle = useMemo(
() => () =>