They support syncing to and from Dropbox directly https://www.sharelatex.com/dropbox. So you can work offline, use your own editor etc.
You can also download your entire project as a zip archive, so you're not locked in to our platform in any way.
EDIT: also, ShareLatex is open source and fully self-hostable.