Handle editor change