Fixed bug in editor.html