Skip to content

ReferenceError: deleteUrl is not defined? #387

@arievanden

Description

@arievanden

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()
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions