Added 'flatten' action to collapse a split editor