add new command syntax to examples

This commit is contained in:
Philipp Kühn
2018-10-28 22:57:05 +01:00
parent 340b1b2266
commit e66218bd95
11 changed files with 74 additions and 72 deletions

View File

@@ -1,10 +1,10 @@
<template>
<div class="editor">
<menu-bar class="menubar" :editor="editor">
<template slot-scope="{ nodes }">
<template slot-scope="{ commands }">
<button
class="menubar__button"
@click="showImagePrompt(nodes.image.command)"
@click="showImagePrompt(commands.image)"
>
<icon name="image" />
</button>