mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-19 16:42:17 +03:00
108c7c38f6
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
24 lines
748 B
Handlebars
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}} |