Write, Bureaucrats, Administrators
275
edits
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(). | var myEditor = ui().edit('Type your text here'); | ||
var currentText = myEditor.text; | var currentText = myEditor.text; | ||
myEditor.text = 'New text'; | myEditor.text = 'New text'; |