Custom new paragraph #1712
Answered
by
hanspagel
af-sko
asked this question in
Questions & Help
-
Hi, just asking if it is possible to hook into the process of adding a new paragraph. Is this somehow possible with an extension ? |
Beta Was this translation helpful? Give feedback.
Answered by
hanspagel
Aug 11, 2021
Replies: 1 comment 1 reply
-
Sure! Does that help? https://www.tiptap.dev/guide/styling#extensions new Editor({
extensions: [
Document,
Paragraph.configure({
HTMLAttributes: {
class: 'my-custom-paragraph',
},
}),
Heading.configure({
HTMLAttributes: {
class: 'my-custom-heading',
},
}),
Text,
],
}) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
hanspagel
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sure! Does that help? https://www.tiptap.dev/guide/styling#extensions