solution for open the correct editor