Move wi-editor doc into doc.go and fix a parsing error