Skip to content

Commit 38330a7

Browse files
committed
Update RTE library to support pasting of images.
1 parent 9f797e4 commit 38330a7

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

changelog.d/8270.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Update rich text editor library to support pasting of images.

dependencies.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ ext.libs = [
101101
],
102102
element : [
103103
'opusencoder' : "io.element.android:opusencoder:1.1.0",
104-
'wysiwyg' : "io.element.android:wysiwyg:2.2.1"
104+
'wysiwyg' : "io.element.android:wysiwyg:2.2.2"
105105
],
106106
squareup : [
107107
'moshi' : "com.squareup.moshi:moshi:$moshi",

vector/src/main/java/im/vector/app/features/home/room/detail/composer/RichTextComposerLayout.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ internal class RichTextComposerLayout @JvmOverloads constructor(
8888
override val text: Editable?
8989
get() = editText.text
9090
override val formattedText: String?
91-
get() = (editText as? EditorEditText)?.getHtmlOutput()
91+
get() = (editText as? EditorEditText)?.getContentAsMessageHtml()
9292
override val editText: EditText
9393
get() = if (isTextFormattingEnabled) {
9494
views.richTextComposerEditText

0 commit comments

Comments
 (0)