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

3.24 setTextChangeListener

D2Editor:setTextChangeListener(function(editor))

Sets the callback function for when the text expression changes. This function will be passed into the editor object. This allows for processing text input as it occurs.

Returns the text editor object.

Info

To remove the listener, call D2Editor:setTextChangeListener(nil)

Introduced in platform.apiLevel = '2.0'