Ghost/ghost/admin/lib/koenig-editor/addon/templates/components/koenig-slash-menu.hbs
Kevin Ansfield 5d4053dec2 Koenig - Slash menu
refs https://github.com/TryGhost/Ghost/issues/9311
- adds `{{koenig-slash-menu}}` component that renders a quick-access card/block menu when typing `/` at the beginning of a new paragraph
2018-02-03 17:54:57 +01:00

11 lines
414 B
Handlebars

{{#if showMenu}}
<div class="koenig-cardmenu">
{{#each items as |item|}}
<div class="koenig-cardmenu-card {{if item.selected "selected"}}" {{action "itemClicked" item on="click"}}>
<div class="koenig-cardmenu-icon">{{inline-svg item.icon}}</div>
<div class="koenig-cardmenu-label">{{item.label}}</div>
</div>
{{/each}}
</div>
{{/if}}