Skip to content

Commit

Permalink
preserve fileItemUuid during browser restart
Browse files Browse the repository at this point in the history
  • Loading branch information
nkonev committed Oct 21, 2024
1 parent 1574c78 commit 493a882
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/src/MessageEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -609,6 +609,9 @@
}
this.$nextTick(()=>{
this.$refs.tipTapRef.setContent(this.editMessageDto.text);
if (hasLength(this.editMessageDto.fileItemUuid)) {
this.$refs.tipTapRef.setFileItemUuid(this.editMessageDto.fileItemUuid);
}
}).then(()=>{
this.$refs.tipTapRef.setCursorToEnd();
});
Expand Down

0 comments on commit 493a882

Please sign in to comment.