open document in editor