Memento JavaScript UI: Difference between revisions

 
Line 155: Line 155:
The editor object has two properties for retrieving and modifying the text in the editor, respectively.
The editor object has two properties for retrieving and modifying the text in the editor, respectively.
<source lang="javascript">
<source lang="javascript">
var myEditor = ui().editor('Type your text here');  
var myEditor = ui().edit('Type your text here');  
var currentText = myEditor.text;  
var currentText = myEditor.text;  
myEditor.text = 'New text';
myEditor.text = 'New text';