support data when create editor from js
refactor json