I’ve created a new TextEditor view, I’d like to have set/get control over its contents.
@exampleEditor = new TextEditor tabLength: 2 softTabs: true softWrapped: true placeholderText: 'Text above' @subview 'exampleEditor', new TextEditorView(editor: @exampleEditor)
I can set the contents using
@exampleEditor.setText('Hello World'), but these contents are not visible in the editor view. It remains empty, or can accept a user input.
I can get the contents using
@exampleEditor.getText(), but this just grabs the ‘Hello World’ text, and not the user inputted text.
How can I set and get the actual Editor text as seen in the view?