refactor(editor): note slash menu config extension (#10678)

This commit is contained in:
L-Sun
2025-03-07 08:21:18 +00:00
parent 4be80d87ff
commit 37a13032ed
28 changed files with 437 additions and 443 deletions
@@ -7,6 +7,7 @@ import {
DocNoteBlockAdapterExtensions,
EdgelessNoteBlockAdapterExtensions,
} from './adapters/index.js';
import { NoteSlashMenuConfigExtension } from './configs/slash-menu.js';
import { NoteBlockService } from './note-service.js';
const flavour = NoteBlockSchema.model.flavour;
@@ -16,6 +17,7 @@ export const NoteBlockSpec: ExtensionType[] = [
NoteBlockService,
BlockViewExtension(flavour, literal`affine-note`),
DocNoteBlockAdapterExtensions,
NoteSlashMenuConfigExtension,
].flat();
export const EdgelessNoteBlockSpec: ExtensionType[] = [
@@ -23,4 +25,5 @@ export const EdgelessNoteBlockSpec: ExtensionType[] = [
NoteBlockService,
BlockViewExtension(flavour, literal`affine-edgeless-note`),
EdgelessNoteBlockAdapterExtensions,
NoteSlashMenuConfigExtension,
].flat();