Found the problem and it was in the onfocus on the submit button
was
onfocus="save('Editor1')"
should have been
onfocus="save(Editor1)"