Steps to replicate the issue (include links if applicable):
- Tab 1: open https://www.wikifunctions.org/view/en/Z21995
- Tab 2: open https://www.wikifunctions.org/view/en/Z21642
- In Tab 2, click the + next to implementations to create a new implementation, then switch to code, and choose javascript
- In Tab 1 In the code section (not editing, just viewing), select (ctrl-a) and copy (ctrl-c) all the code.
- In Tab 2, in the code box, select all (ctrl-a) to highlight the auto-generated function template, then paste the code already copied from Tab 1 to replace it (ctrl-v). Then press publish, enter a comment, and publish again.
What happens?:
"Invalid JSON"
What should have happened instead?:
It should just save?
Other information (browser name/version, screenshots, etc.):
The other day I could get around this by pre-saving the empty function template, then editing again and now pasting the code which allowed publication.
