It's possible to programmatically replace the text using the text property and for example shorten it. A cursor that was previously placed at the end of the text should now report an adjusted position via the API - the same applies to the anchor.
Note: cursor_position and anchor_position are not documented right now, but they are accessible (and used by the tests).
It's possible to programmatically replace the text using the
textproperty and for example shorten it. A cursor that was previously placed at the end of the text should now report an adjusted position via the API - the same applies to the anchor.Note:
cursor_positionandanchor_positionare not documented right now, but they are accessible (and used by the tests).