Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
D2Editor:getExpression
28 bytes added
,
12:46, 11 June 2011
→Example
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 ==
Adriweb
Bureaucrats
,
Administrators
935
edits
Navigation menu
Personal tools
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages