feat: add embeds to command palette
This commit is contained in:
parent
20dae101e9
commit
46c12a9f8c
@ -11,6 +11,7 @@ export const actionSetEmbeddableAsActiveTool = register({
|
|||||||
trackEvent: { category: "toolbar" },
|
trackEvent: { category: "toolbar" },
|
||||||
target: "Tool",
|
target: "Tool",
|
||||||
label: "toolBar.embeddable",
|
label: "toolBar.embeddable",
|
||||||
|
keywords: ["embeddable", "embed", "iframe"],
|
||||||
perform: (elements, appState, _, app) => {
|
perform: (elements, appState, _, app) => {
|
||||||
const nextActiveTool = updateActiveTool(appState, {
|
const nextActiveTool = updateActiveTool(appState, {
|
||||||
type: "embeddable",
|
type: "embeddable",
|
||||||
|
@ -319,6 +319,7 @@ function CommandPaletteInner({
|
|||||||
actionManager.actions.toggleHandTool,
|
actionManager.actions.toggleHandTool,
|
||||||
actionManager.actions.setFrameAsActiveTool,
|
actionManager.actions.setFrameAsActiveTool,
|
||||||
actionManager.actions.toggleLassoTool,
|
actionManager.actions.toggleLassoTool,
|
||||||
|
actionManager.actions.setEmbeddableAsActiveTool,
|
||||||
].map((action) => actionToCommand(action, DEFAULT_CATEGORIES.tools));
|
].map((action) => actionToCommand(action, DEFAULT_CATEGORIES.tools));
|
||||||
|
|
||||||
const editorCommands: CommandPaletteItem[] = [
|
const editorCommands: CommandPaletteItem[] = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user