When you have NWE beta enabled, then proveit will throw an error.
It will fail inside the prove() function, because var wikitext = proveit.getTextbox().val() will return null, as there is no wptextbox1 on the page in this case.
When you have NWE beta enabled, then proveit will throw an error.
It will fail inside the prove() function, because var wikitext = proveit.getTextbox().val() will return null, as there is no wptextbox1 on the page in this case.
The loader assumes that action=edit means the classic editor will be available, it should also check for the existence of #wpTextbox1.
I updated the initialization code so that it checks for the existence of the #wpTextbox1 element before loading ProveIt. See https://commons.wikimedia.org/wiki/Help:Gadget-ProveIt or https://en.wikipedia.org/wiki/MediaWiki:Gadget-ProveIt.js
I also updated the initialization code of all the Wikipedias using ProveIt.