Update formatEditor.js