Fixed javascript when more that one editor in form.