Changes

Jump to navigation Jump to search

D2Editor:getExpression

28 bytes added, 12:46, 11 June 2011
Line 18: Line 18:     
function on.charIn(char)
 
function on.charIn(char)
currentText = editor:getText()
+
currentText = editor:getExpression() -- or editor:getText()
 
editor:setText(currentText .. char)
 
editor:setText(currentText .. char)
 
--Add char to the editor
 
--Add char to the editor
Line 29: Line 29:  
</source>  
 
</source>  
   −
A very simple text editor (its actually more complicated that it be, but it shows the basics).  
+
A very simple text editor (its actually more complicated that it be, but it shows the basics).
    
== See also  ==
 
== See also  ==

Navigation menu