The version of TextEdit that ships with macOS 10.12 is version 1.12, but it's possible that 1.9 is the latest version for which source code is available.
In macOS "document application" usually means an app that relies on NSDocument functionality, but it sounds like you mean a word-processing application, or something along that line. If so, I'm not aware of one provided by Apple other than TextEdit. You can try searching on (say) GitHub for 3rd-party alternatives.
Note that NSTextView is a very full-featured control that implements a lot of very sophisticated text editing and layout. That might be a better place to start than to look for an entire app. The NSDocument (i.e. file handling) parts of the app are more or less independent of the text editing parts.
Also keep in mind that TextEdit has been around since 10.0, and has been rewritten numerous times, but its code does not necessarily represent the current state of the art of macOS programming. IMO you should think of TextEdit as a showcase for NSTextView and NSDocument, not an actual starting point for your own code.