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'