Skip to content

Commit

Permalink
Merge pull request #72 from TendernessCJS/fix(tiptap)-extensions
Browse files Browse the repository at this point in the history
fix(tiptap): 支持tiptap自定义拓展
  • Loading branch information
yangfuhai authored Sep 5, 2024
2 parents 9bea854 + 2c336cc commit 34a6313
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/AiEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ export class AiEditor {
let extensions = getExtensions(this, this.options);
if (this.options.onCreateBefore) {
const newExtensions = this.options.onCreateBefore(this, extensions);
if (!newExtensions) extensions = newExtensions!;
if (newExtensions) extensions = newExtensions;
}

this.innerEditor = new InnerEditor(this, {
Expand Down

0 comments on commit 34a6313

Please sign in to comment.