Skip to content

Commit c51283d

Browse files
authored
Merge pull request #1044 from wordpress-mobile/issue/880-center-point-not-in-rectangle
Issue/880 center point not in rectangle
2 parents 8ce8c78 + c8583c9 commit c51283d

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ class AztecExceptionHandler(private var logHelper: WeakReference<ExceptionHandle
6565
visualEditor.get()?.externalLogger?.logException(DynamicLayoutGetBlockIndexOutOfBoundsException("Error #8828", ex))
6666
}
6767
}
68-
6968
rootHandler?.uncaughtException(thread, ex)
7069
}
7170

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1891,6 +1891,14 @@ open class AztecText : AppCompatEditText, TextWatcher, UnknownHtmlSpan.OnUnknown
18911891
return super.onTextContextMenuItem(id)
18921892
}
18931893
}
1894+
android.R.id.selectAll -> {
1895+
return if (text.toString() == Constants.END_OF_BUFFER_MARKER.toString()) {
1896+
deleteInlineStyleFromTheBeginning()
1897+
return true
1898+
} else {
1899+
super.onTextContextMenuItem(id)
1900+
}
1901+
}
18941902
else -> return super.onTextContextMenuItem(id)
18951903
}
18961904

0 commit comments

Comments
 (0)