mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-08-06 13:38:49 +08:00
wip: use parent for code bleock highlight extension
This commit is contained in:
parent
6c2eea094c
commit
bc35016728
@ -8,13 +8,13 @@ export interface CodeBlockLowlightOptions extends CodeBlockOptions {
|
||||
|
||||
export const CodeBlockLowlight = CodeBlock.extend<CodeBlockLowlightOptions>({
|
||||
defaultOptions: {
|
||||
...CodeBlock.config.defaultOptions,
|
||||
...CodeBlock.options,
|
||||
lowlight,
|
||||
},
|
||||
|
||||
addProseMirrorPlugins() {
|
||||
return [
|
||||
// ...this.parentConfig.addProseMirrorPlugins?.() || [],
|
||||
...this.parent?.() || [],
|
||||
LowlightPlugin({
|
||||
name: 'codeBlock',
|
||||
lowlight: this.options.lowlight,
|
||||
|
Loading…
Reference in New Issue
Block a user