mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-26 05:39:16 +08:00
remove custom name for lowlight code block
This commit is contained in:
parent
1f2cbc5594
commit
74bd678e8b
@ -13,8 +13,6 @@ export interface CodeBlockLowlightOptions {
|
||||
}
|
||||
|
||||
export const CodeBlockLowlight = CodeBlock.extend<CodeBlockLowlightOptions>({
|
||||
name: 'codeBlockLowlight',
|
||||
|
||||
defaultOptions: {
|
||||
languageClassPrefix: 'language-',
|
||||
HTMLAttributes: {},
|
||||
@ -29,7 +27,7 @@ export const CodeBlockLowlight = CodeBlock.extend<CodeBlockLowlightOptions>({
|
||||
|
||||
addProseMirrorPlugins() {
|
||||
return [
|
||||
LowlightPlugin({ name: 'codeBlockLowlight' }),
|
||||
LowlightPlugin({ name: 'codeBlock' }),
|
||||
]
|
||||
},
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user