Ghost/ghost/admin/lib/koenig-editor/addon/components/koenig-link-input.hbs
Kevin Ansfield b590ce1b95 Implemented first iteration of content snippets
closes https://github.com/TryGhost/Team/issues/411

- adds "Create snippet" icon to the editor toolbar
- uses the same link input component design for specifying snippet titles
- snippets are loaded in the background when the editor is accessed
- snippets are listed at the bottom of the card menus of the + and / menus
- clicking a snippet inserts the snippet's contents in place of the current blank section
2020-10-15 18:03:35 +01:00

14 lines
470 B
Handlebars

<input
placeholder="Enter url"
value={{this.href}}
class="kg-link-input pa2 pr6 mih-100 ba br3 shadow-2 f8 lh-heading tracked-2 outline-0 b--blue h10 nudge-top--8"
oninput={{action (mut this.href) value="target.value"}}
onkeydown={{action "inputKeydown"}}
/>
{{#if href}}
<button aria-label="Close" class="kg-input-bar-close" type="button" {{action "clear"}}>
{{svg-jar "close" class="ih2 stroke-midlightgrey-l2"}}
</button>
{{/if}}