Utility functions for the TextEditor component.

Static methods

staticapplyTextChangeToLines(lines:Array<String>, change:TextEditorChange):Array<String>

Applies a TextEditorChange to an array of strings representing a file displayed by a TextEditor.

staticdeleteSelection(textEditor:TextEditor, ?newText:String):Null<TextEditorChange>

Deletes the current selection and optionally replaces it with new text.