wip: use parent for code bleock highlight extension
This commit is contained in:
@@ -8,13 +8,13 @@ export interface CodeBlockLowlightOptions extends CodeBlockOptions {
|
|||||||
|
|
||||||
export const CodeBlockLowlight = CodeBlock.extend<CodeBlockLowlightOptions>({
|
export const CodeBlockLowlight = CodeBlock.extend<CodeBlockLowlightOptions>({
|
||||||
defaultOptions: {
|
defaultOptions: {
|
||||||
...CodeBlock.config.defaultOptions,
|
...CodeBlock.options,
|
||||||
lowlight,
|
lowlight,
|
||||||
},
|
},
|
||||||
|
|
||||||
addProseMirrorPlugins() {
|
addProseMirrorPlugins() {
|
||||||
return [
|
return [
|
||||||
// ...this.parentConfig.addProseMirrorPlugins?.() || [],
|
...this.parent?.() || [],
|
||||||
LowlightPlugin({
|
LowlightPlugin({
|
||||||
name: 'codeBlock',
|
name: 'codeBlock',
|
||||||
lowlight: this.options.lowlight,
|
lowlight: this.options.lowlight,
|
||||||
|
|||||||
Reference in New Issue
Block a user