Ghost/ghost/admin/app/components/koenig-image-editor.hbs

16 lines
420 B
Handlebars
Raw Normal View History

{{#if this.isEditorEnabled}}
<GhUploader
@onComplete={{this.onUploadComplete}}
as |uploader|
>
<button
type="button"
class="{{if @className @className "image-action image-edit"}}"
title="Edit image"
{{on "click" (fn this.handleClick uploader)}}
>
{{svg-jar "koenig/kg-edit"}}
</button>
</GhUploader>
{{/if}}