change editor type as same as front-end