I am having trouble getting this sample to work. If I press the "Save and Reload Document" button, nothing happens, the DocumentEditor is not shown:

It seems like the SaveDocumentResultCallback of TXTextControl.saveDocument() (in TextControl.js) does not get invoked, but I don't know how to debug this further.
Any help would be appreciated.