mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-02 08:13:34 +03:00
48030c3050
refs https://github.com/TryGhost/Team/issues/3034 - adds new alpha feature flag for image editing in Admin - allows new config for Pintura files that enable the image editing in Admin - adds new ember component for triggering image editing for post feature images --------- Co-authored-by: Sodbileg Gansukh <sodbileg.gansukh@gmail.com>
18 lines
570 B
Handlebars
18 lines
570 B
Handlebars
{{#if @image}}
|
|
<div class="gh-image-uploader -with-image">
|
|
<div><img src={{@image}}></div>
|
|
<a class="image-action image-delete" title="Delete" {{on "click" (fn @remove "")}}>
|
|
{{svg-jar "trash"}}
|
|
<span class="hidden">Delete</span>
|
|
</a>
|
|
</div>
|
|
{{else}}
|
|
<GhImageUploader
|
|
@text={{@text}}
|
|
@altText={{@altText}}
|
|
@allowUnsplash={{@allowUnsplash}}
|
|
@update={{@update}}
|
|
@uploadStarted={{optional @uploadStarted}}
|
|
@uploadFinished={{optional @uploadFinished}}
|
|
/>
|
|
{{/if}} |