Skip to content

Commit 6bfac7a

Browse files
committed
Fix the crash
1 parent 66638c8 commit 6bfac7a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

aztec/src/main/kotlin/org/wordpress/aztec/AztecText.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,9 @@ class AztecText : EditText, TextWatcher, UnknownHtmlSpan.OnUnknownHtmlClickListe
223223

224224
install()
225225

226+
// Needed to properly initialize the cursor position
227+
setSelection(0)
228+
226229
enableTextChangedListener()
227230

228231
isViewInitialized = true

0 commit comments

Comments
 (0)