Markdown: Fix JSON embedding

The JSON editor is finally embeddable! (almost)
@madskristensen This class is also a workaround for an editor limitation; you should basically copy-paste this into the JSON editor's existing listener.

The problem is that `JSONEditorDocument.FromTextView()` only looks at the document buffer, so it fails for projection buffers.