diff --git a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-file-field/components/dot-file-field-preview/dot-file-field-preview.component.html b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-file-field/components/dot-file-field-preview/dot-file-field-preview.component.html index d3b04b77a7a3..730897a6e2c9 100644 --- a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-file-field/components/dot-file-field-preview/dot-file-field-preview.component.html +++ b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-file-field/components/dot-file-field-preview/dot-file-field-preview.component.html @@ -2,39 +2,46 @@ @let metadata = $metadata(); @let downloadLink = $downloadLink(); -
-
- @if (previewFile.source === 'temp') { - - } @else { - - } -
-
- @if (metadata) { - - @if (metadata.width && metadata.height) { - +
+ @if (metadata?.editableAsText) { +
+ {{ $content() }} +
+ } @else { +
+ @if (previewFile.source === 'temp') { + + } @else { + } - @if (metadata.fileSize) { - +
+ +
+ } +