Updating text-editor widget to bind text field value to cursor value; improving error reporting in after-event