toggle editor sub mode event