Rich-text editor: enable translations between Markdown and HTML when toggling text formatting

This commit is contained in:
aringenbach
2022-11-09 16:43:58 +01:00
parent e84b59bd1b
commit 8c54a918ff
6 changed files with 6 additions and 10 deletions

View File

@@ -137,8 +137,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() {