You are here: Lua Scripting Resources eGuide > Lua Scripting API Reference Guide > 2D Editor Library > getText

3.6 getText

D2Editor:getText()

Returns the contents of the text editor as a UTF-8 encoded string.

Introduced in platform.apiLevel = '1.0'