Ghost/ghost/admin/lib/koenig-editor/addon/components/koenig-slash-menu.hbs

18 lines
623 B
Handlebars
Raw Normal View History

<div
id="koenig-slash-menu"
class="absolute"
{{did-insert this.registerContainerElement}}
{{did-update this.registerEditor @editor}}
{{did-update this.handleCursorChange @editorRange}}
{{did-update this.updateItemSections @snippets}}
...attributes
>
{{#if (and this.showMenu this.itemSections)}}
<div class="koenig-cardmenu {{kg-style "cardmenu"}}" role="menu">
<KoenigMenuContent
@itemSections={{this.itemSections}}
@selectedItem={{this.selectedItem}}
@itemClicked={{this.itemClicked}} />
</div>
{{/if}}
</div>