ReferenceError: deleteUrl is not defined?
The editor is working great. I do have a problem with the calls for delete, rename, etc.
deleteUrl seems to be declared from editor.html
let deleteUrl = 'save.php?action=delete';
but from builder.js, it returns: ReferenceError: deleteUrl is not defined. What am I missing?
deletePage: function(element, e) { ... fetch(deleteUrl, { method: "POST", body: new URLSearchParams({file:page.file}) }) .then((response) => { if
(!response.ok){ return Promise.reject(response); } return response.text() })
I'm unable to reproduce this bug.
Can you please check if there is another js error before this one that might invalidate `let deleteUrl' declaration?
Can you also check on demo https://www.vvveb.com/vvvebjs/editor.html to rule out any browser issues?
I'm calling the libs from Yii2, and after testing it seems that $this->registerJs() breaks the variables. Not sure how, but it does. Tried different registerJs() params with the same result. The solution is to just use