Ghost/ghost/admin/app/components/gh-image-uploader-with-preview.hbs
Michael Barrett 108c7c38f6
Removed imageEditor flag (#16921)
refs https://github.com/TryGhost/Team/issues/3337

Removed `imageEditor` flag and moved gated logic to be behind the
`lexicalEditor` flag as part of the labs clean up
2023-06-02 12:07:31 +01:00

24 lines
748 B
Handlebars

{{#if @image}}
<div class="gh-image-uploader -with-image">
<div><img src={{@image}}></div>
{{#if (feature 'lexicalEditor')}}
<KoenigImageEditor
@imageSrc={{@image}}
@saveUrl={{@update}}
/>
{{/if}}
<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}}