Block Container
bloc container extension for tiptap
Installation
bash
npm install @note-editor/tiptap-extension-block-container
bash
pnpm add @note-editor/tiptap-extension-block-container
Usage
TIP
@note-editor/tiptap-extension-block-container
is already included by @note-editor/vue-kit
, so usually you don’t need to repeat the installation
DANGER
The @tiptap/extension-document
has been extended to implement a top-level block container, so please pay attention to the compatibility processing of old and new data structures. If you want to see more, please see the source code.
ts
import { Editor } from '@tiptap/core'
import { blockContainer } from '@note-editor/tiptap-extension-block-container'
const editor = new Editor({
content: '<p>@note-editor/tiptap-extension-unique-id</p>',
extensions: [
blockContainer
]
})