Skip to content

Commit 39e52da

Browse files
committed
fix(texteditor)[image]: save permanentSrc on update
1 parent ea35a64 commit 39e52da

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

  • contentcuration/contentcuration/frontend/shared/views/TipTapEditor/TipTapEditor/components/image

contentcuration/contentcuration/frontend/shared/views/TipTapEditor/TipTapEditor/components/image/ImageUploadModal.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,12 @@
247247
const triggerFileInput = () => fileInput.value.click();
248248
const onFileSelect = event => handleFileChange(event.target.files[0]);
249249
const onInsert = () => emit('insert', { src: previewSrc.value, alt: altText.value });
250-
const onSave = () => emit('update', { src: previewSrc.value, alt: altText.value });
250+
const onSave = () =>
251+
emit('update', {
252+
src: previewSrc.value,
253+
alt: altText.value,
254+
permanentSrc: previewSrc.value,
255+
});
251256
252257
useFocusTrap(modalRoot);
253258

0 commit comments

Comments
 (0)