Fix issue in wegas-editor-form.js