Ghost/ghost/admin/lib/gh-koenig/addon/templates/components/koenig-toolbar.hbs
Ryan McCarvill 5b44886412 Insert Link styling (#598)
closes: https://github.com/TryGhost/Ghost/issues/8109
- adds styling for the insert link toolbar component.
2017-03-20 12:44:09 +00:00

12 lines
569 B
Handlebars

{{#if isLink}}
{{input keyDown=(action "linkKeyDown") keyPress=(action "linkKeyPress") autofocus=true placeholder="Enter a link"}}
<button class="gh-toolbar-btn" {{action 'closeLink'}}>x</button>
{{else}}
{{#each toolbar as |tool|}}
{{koenig-toolbar-button tool=tool editor=editor iconURL=iconURL assetPath=assetPath}}
{{/each}}
<div class="gh-toolbar-divider" role="presentation"></div>
{{#each toolbarBlocks as |tool|}}
{{koenig-toolbar-button tool=tool editor=editor iconURL=iconURL assetPath=assetPath}}
{{/each}}
{{/if}}