Send markdown (not rendered yet in the timeline).
This commit is contained in:
parent
a0c753a85c
commit
1a93ddac15
2 changed files with 2 additions and 3 deletions
|
|
@ -213,7 +213,7 @@ class RichTextComposerLayout @JvmOverloads constructor(
|
|||
}
|
||||
|
||||
views.sendButton.setOnClickListener {
|
||||
val textMessage = text?.toSpannable() ?: ""
|
||||
val textMessage = views.richTextComposerEditText.getMarkdown() // text?.toSpannable() ?: ""
|
||||
callback?.onSendMessage(textMessage)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -39,8 +39,7 @@ fun TextComposer(
|
|||
}
|
||||
|
||||
override fun onSendMessage(text: CharSequence) {
|
||||
// TODO The Wysiwyg team is working to be able to get a markdown version of the text
|
||||
// For now we send only the plain text. `formattedText` is Html.
|
||||
// text contains markdown.
|
||||
onSendMessage(text.toString())
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue