Fix: cannot select text in plain text mode in Rich Text Editor
This commit is contained in:
parent
3ab465ea93
commit
d5bd05d0bb
|
@ -0,0 +1 @@
|
|||
Cannot select text properly in plain text mode when using Rich Text Editor.
|
|
@ -15,7 +15,6 @@
|
|||
<item name="android:background">@android:color/transparent</item>
|
||||
<item name="android:inputType">textCapSentences|textMultiLine</item>
|
||||
<item name="android:maxLines">10</item>
|
||||
<item name="android:minHeight">40dp</item>
|
||||
<item name="android:paddingTop">10dp</item>
|
||||
<item name="android:paddingBottom">10dp</item>
|
||||
<item name="paddingStart">12dp</item>
|
||||
|
|
|
@ -291,7 +291,7 @@ internal class RichTextComposerLayout @JvmOverloads constructor(
|
|||
|
||||
private fun updateEditTextVisibility() {
|
||||
views.richTextComposerEditText.isVisible = isTextFormattingEnabled
|
||||
views.richTextMenu.isVisible = isTextFormattingEnabled
|
||||
views.richTextMenuScrollView.isVisible = isTextFormattingEnabled
|
||||
views.plainTextComposerEditText.isVisible = !isTextFormattingEnabled
|
||||
|
||||
// The layouts for formatted text mode and plain text mode are different, so we need to update the constraints
|
||||
|
|
Loading…
Reference in New Issue