constructor param mode global editor mode action set mode mode mode 