feat: add parentConfig to extension context for more extendable extensions, fix #259
This commit is contained in:
@@ -4,6 +4,7 @@ import { LowlightPlugin } from './lowlight-plugin'
|
||||
export const CodeBlockLowlight = CodeBlock.extend({
|
||||
addProseMirrorPlugins() {
|
||||
return [
|
||||
...this.parentConfig.addProseMirrorPlugins?.() || [],
|
||||
LowlightPlugin({ name: 'codeBlock' }),
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user