Update RTE library to support pasting of images.

This commit is contained in:
David Langley 2023-06-09 09:29:01 +01:00
parent 9f797e49e9
commit 38330a7b67
3 changed files with 3 additions and 2 deletions

1
changelog.d/8270.bugfix Normal file
View file

@ -0,0 +1 @@
Update rich text editor library to support pasting of images.

View file

@ -101,7 +101,7 @@ ext.libs = [
],
element : [
'opusencoder' : "io.element.android:opusencoder:1.1.0",
'wysiwyg' : "io.element.android:wysiwyg:2.2.1"
'wysiwyg' : "io.element.android:wysiwyg:2.2.2"
],
squareup : [
'moshi' : "com.squareup.moshi:moshi:$moshi",

View file

@ -88,7 +88,7 @@ internal class RichTextComposerLayout @JvmOverloads constructor(
override val text: Editable?
get() = editText.text
override val formattedText: String?
get() = (editText as? EditorEditText)?.getHtmlOutput()
get() = (editText as? EditorEditText)?.getContentAsMessageHtml()
override val editText: EditText
get() = if (isTextFormattingEnabled) {
views.richTextComposerEditText