feat: add embeds to command palette

This commit is contained in:
Ryan Di 2025-05-29 12:00:01 +10:00
parent 20dae101e9
commit 46c12a9f8c
2 changed files with 2 additions and 0 deletions

View File

@ -11,6 +11,7 @@ export const actionSetEmbeddableAsActiveTool = register({
trackEvent: { category: "toolbar" },
target: "Tool",
label: "toolBar.embeddable",
keywords: ["embeddable", "embed", "iframe"],
perform: (elements, appState, _, app) => {
const nextActiveTool = updateActiveTool(appState, {
type: "embeddable",

View File

@ -319,6 +319,7 @@ function CommandPaletteInner({
actionManager.actions.toggleHandTool,
actionManager.actions.setFrameAsActiveTool,
actionManager.actions.toggleLassoTool,
actionManager.actions.setEmbeddableAsActiveTool,
].map((action) => actionToCommand(action, DEFAULT_CATEGORIES.tools));
const editorCommands: CommandPaletteItem[] = [