mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03:00
b590ce1b95
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
14 lines
470 B
Handlebars
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}}
|