From bc35016728612335b5374e96d345ecf7ec78fce0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Thu, 15 Apr 2021 22:15:07 +0200 Subject: [PATCH] wip: use parent for code bleock highlight extension --- .../extension-code-block-lowlight/src/code-block-lowlight.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/extension-code-block-lowlight/src/code-block-lowlight.ts b/packages/extension-code-block-lowlight/src/code-block-lowlight.ts index c00458dd..adb73639 100644 --- a/packages/extension-code-block-lowlight/src/code-block-lowlight.ts +++ b/packages/extension-code-block-lowlight/src/code-block-lowlight.ts @@ -8,13 +8,13 @@ export interface CodeBlockLowlightOptions extends CodeBlockOptions { export const CodeBlockLowlight = CodeBlock.extend({ defaultOptions: { - ...CodeBlock.config.defaultOptions, + ...CodeBlock.options, lowlight, }, addProseMirrorPlugins() { return [ - // ...this.parentConfig.addProseMirrorPlugins?.() || [], + ...this.parent?.() || [], LowlightPlugin({ name: 'codeBlock', lowlight: this.options.lowlight,