We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c703c6c commit 5f4e56bCopy full SHA for 5f4e56b
aztec/src/main/kotlin/org/wordpress/aztec/AztecText.kt
@@ -903,7 +903,15 @@ class AztecText : EditText, TextWatcher {
903
text.getSpans(0, text.length, AztecMediaSpan::class.java).forEach {
904
if (it.attributes != null) {
905
if (attributePredicate.matches(it.attributes as Attributes)) {
906
+ val start = text.getSpanStart(it)
907
+ val end = text.getSpanEnd(it)
908
+
909
+ val clickableSpan = text.getSpans(start, end, AztecMediaClickableSpan::class.java).firstOrNull()
910
911
+ text.removeSpan(clickableSpan)
912
text.removeSpan(it)
913
914
+ text.delete(start, end)
915
}
916
917
0 commit comments