This example isn't as nice as the simple editor.exportFile(). Since text is still the default there isn't any need to show this IMO.