Added a method to handle the editorTextDidChange callback.