mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
feat(editor): insertion and duplication actions for embed synced doc (#11852)
Close [BS-3068](https://linear.app/affine-design/issue/BS-3068/在edgeless-的embed-doc-block上,增加-insert-into-page的选项,类似frame) Close [BS-3069](https://linear.app/affine-design/issue/BS-3069/edgeless下的-embed,覆盖现在的edit行为-,暂定叫做duplicate-into-a-note,复制一个-note)
This commit is contained in:
@@ -1099,19 +1099,6 @@ export const createCustomToolbarExtension = (
|
||||
},
|
||||
}),
|
||||
|
||||
ToolbarModuleExtension({
|
||||
id: BlockFlavourIdentifier('custom:affine:surface:embed-synced-doc'),
|
||||
config: {
|
||||
actions: [
|
||||
embedSyncedDocToolbarConfig.actions,
|
||||
createOpenDocActionGroup(EmbedSyncedDocBlockComponent, settings),
|
||||
createEdgelessOpenDocActionGroup(EmbedSyncedDocBlockComponent),
|
||||
].flat(),
|
||||
|
||||
when: ctx => ctx.getSurfaceModels().length === 1,
|
||||
},
|
||||
}),
|
||||
|
||||
ToolbarModuleExtension({
|
||||
id: BlockFlavourIdentifier('custom:affine:reference'),
|
||||
config: {
|
||||
|
||||
Reference in New Issue
Block a user