Hello,
the Text Editor exposes a property String. To get the actual content of the Text Editor, simply evaluate the property. To change the content, as mentioned by Kyo, assign a new string to the property. For example:
// Get the actual content from the Text Editor
var string text = TextEditor.String;
// Change the content
TextEditor.String = "Hello World!";
Also please note the property OnChange. When you assign to this property a slot method, the Text Editor will invoke the method automatically each time the user modifies the text. In the slot method you can implement your desired operations to handle the event.
I hope, it helps you further.
Best regards
Paul Banach