custom classes added

This commit is contained in:
Untone 2024-10-11 03:51:24 +03:00
parent 5ef8de018e
commit a99164b504
4 changed files with 6 additions and 4 deletions

View File

@ -17,7 +17,9 @@ export const CustomBlockquote = Blockquote.extend({
content: 'block+',
addOptions(): BlockquoteOptions {
return {} as BlockquoteOptions
return {
HTMLAttributes: { class: 'blockquote' }
} as BlockquoteOptions
},
addAttributes() {

View File

@ -12,7 +12,7 @@ export const Figcaption = Node.create({
addOptions() {
return {
HTMLAttributes: {}
HTMLAttributes: { class: 'figcaption' }
}
},

View File

@ -12,7 +12,7 @@ export const Figure = Node.create({
name: 'figure',
addOptions() {
return {
HTMLAttributes: {}
HTMLAttributes: { class: 'figure' }
}
},
group: 'block',

View File

@ -14,7 +14,7 @@ export const Footnote = Node.create({
name: 'footnote',
addOptions() {
return {
HTMLAttributes: {}
HTMLAttributes: { class: 'footnote' }
}
},
group: 'inline',