Prevent specific styles from being pasted / Define allowed nodes #7378
Answered by
MickL
Jan 3, 2026
Replies: 1 comment
|
This happens only with StarterKit. If sticking to StarterKit, not wanted extensions can be disabled: const editor = new Editor({
content: '<p>Example Text</p>',
extensions: [
StarterKit.configure({
blockquote: false,
code: false,
codeBlock: false,
dropcursor: false,
gapcursor: false,
heading: false,
horizontalRule: false,
trailingNode: false,
}),
],
})See: https://tiptap.dev/docs/editor/extensions/functionality/starterkit#included-extensions |
0 replies
Answer selected by
MickL
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

This happens only with StarterKit. If sticking to StarterKit, not wanted extensions can be disabled:
See: https://tiptap.dev/docs/editor/extensions/functionality/starterkit#included-extensions