Skip to content

Commit

Permalink
parse formatted text when copy to clipboard, reference upstream issue
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
  • Loading branch information
Antreesy committed Aug 31, 2023
1 parent 9a7176c commit 0d9d202
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,10 @@ export default {
}
}
parsedText = parsedText
.replace(/&lt;/gmi, '<')
.replace(/&gt;/gmi, '>')
try {
await navigator.clipboard.writeText(parsedText)
showSuccess(t('spreed', 'Message text copied to clipboard'))
Expand Down
1 change: 1 addition & 0 deletions src/components/TopBar/TopBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ export default {
},
renderedDescription() {
// FIXME upstream https://github.com/nextcloud-libraries/nextcloud-vue/issues/4492
return this.renderContent(this.conversation.description)
},
Expand Down

0 comments on commit 0d9d202

Please sign in to comment.