on Android devices with API 31 the app crashes when using context menu.
Actually this is the native android context menu which crashes the app, the RichTextEditor context menu is not displayed.
The RichTextEditor context menu gets displayed when closing the keyboard and then tap on the text.