mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-24 09:52:49 +08:00
refactor(editor): edgeless bookmark toolbar config extension (#10711)
This commit is contained in:
@@ -425,8 +425,6 @@ function createExternalLinkableToolbarConfig(
|
||||
toast(ctx.host, 'Copied link to clipboard');
|
||||
|
||||
ctx.track('CopiedLink', {
|
||||
segment: 'doc',
|
||||
page: 'doc editor',
|
||||
module: 'toolbar',
|
||||
category: matchModels(model, [BookmarkBlockModel])
|
||||
? 'bookmark'
|
||||
@@ -464,8 +462,6 @@ function createExternalLinkableToolbarConfig(
|
||||
);
|
||||
|
||||
ctx.track('OpenedAliasPopup', {
|
||||
segment: 'doc',
|
||||
page: 'doc editor',
|
||||
module: 'toolbar',
|
||||
category: matchModels(model, [BookmarkBlockModel])
|
||||
? 'bookmark'
|
||||
@@ -986,6 +982,11 @@ export const createCustomToolbarExtension = (
|
||||
config: createExternalLinkableToolbarConfig(BookmarkBlockComponent),
|
||||
}),
|
||||
|
||||
ToolbarModuleExtension({
|
||||
id: BlockFlavourIdentifier('custom:affine:surface:bookmark'),
|
||||
config: createExternalLinkableToolbarConfig(BookmarkBlockComponent),
|
||||
}),
|
||||
|
||||
ToolbarModuleExtension({
|
||||
id: BlockFlavourIdentifier('custom:affine:embed-figma'),
|
||||
config: createExternalLinkableToolbarConfig(EmbedFigmaBlockComponent),
|
||||
|
||||
Reference in New Issue
Block a user