Skip to content

Commit

Permalink
Merge pull request #8517 from vector-im/dla/feature/rte_paste_images
Browse files Browse the repository at this point in the history
Update rich text editor library to support pasting of images
  • Loading branch information
langleyd committed Jun 9, 2023
2 parents 0f18cdb + 38330a7 commit 7d084f1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.d/8270.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update rich text editor library to support pasting of images.
2 changes: 1 addition & 1 deletion dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7d084f1

Please sign in to comment.