givanz / VvvebJs

Drag and drop page builder library written in vanilla javascript without dependencies or build tools.
https://www.vvveb.com/vvvebjs/editor.html
Apache License 2.0
7.25k stars 1.65k forks source link

Uncaught ReferenceError: url is not defined #163

Closed javaskript closed 4 years ago

javaskript commented 4 years ago

Using the editor as editor.php, the PHP code at the end uncommented. Upon making a new page, after clicking "Create Page", this error is thrown:

VM2808:3 Uncaught ReferenceError: url is not defined at eval (eval at tmpl (builder.js:34), :3:91) at tmpl (builder.js:51) at Object.addPage (builder.js:1906) at HTMLFormElement. (builder.js:1635) at HTMLFormElement.dispatch (jquery.min.js:2) at HTMLFormElement.y.handle (jquery.min.js:2)

givanz commented 4 years ago

Hi

Thanks for the bug report, I changed create page code in the last commit.

javaskript commented 4 years ago

Great, thanks!