Skip to content

Custom new paragraph #1712

Aug 11, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

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,
  ],
})

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@af-sko
Comment options

Answer selected by hanspagel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants