Skip to content

Commit 7a365a5

Browse files
committed
Revert fix for select all.
1 parent e5dacfe commit 7a365a5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1976,6 +1976,14 @@ open class AztecText : AppCompatEditText, TextWatcher, UnknownHtmlSpan.OnUnknown
19761976
return super.onTextContextMenuItem(id)
19771977
}
19781978
}
1979+
android.R.id.selectAll -> {
1980+
return if (text.toString() == Constants.END_OF_BUFFER_MARKER.toString()) {
1981+
deleteInlineStyleFromTheBeginning()
1982+
return true
1983+
} else {
1984+
super.onTextContextMenuItem(id)
1985+
}
1986+
}
19791987
else -> return super.onTextContextMenuItem(id)
19801988
}
19811989

0 commit comments

Comments
 (0)