I’ve been staring at TextEditor methods, and it seems there is still no obvious way to delete the first few lines, in order to restrict the text in the TextEditor to a certain number of lines. This would be suitable for some type of error logging, or interactive console.
I had a look-see at CodeEditorComponent but it seems to be too heavily engineered for this simple purpose. Save points? Undos? I need to provide a CodeDocument in order to use this thing?