Merge pull request #7062 from vector-im/aringenbach/7061_enable_markdown

Rich-text editor: enable translations between Markdown and HTML when toggling text formatting
This commit is contained in:
aringenbach
2022-11-10 10:25:43 +01:00
committed by GitHub
6 changed files with 6 additions and 10 deletions

View File

@@ -139,8 +139,7 @@ class WysiwygInputToolbarView: MXKRoomInputToolbarView, NibLoadable, HtmlRoomInp
}
private func sendWysiwygMessage(content: WysiwygComposerContent) {
let html = content.html.isEmpty ? content.plainText : content.html
delegate?.roomInputToolbarView?(self, sendFormattedTextMessage: html, withRawText: content.plainText)
delegate?.roomInputToolbarView?(self, sendFormattedTextMessage: content.html, withRawText: content.markdown)
}
private func showSendMediaActions() {