set toggle editor to code mirror