ace editor as viewer or editor