VvvebJs icon indicating copy to clipboard operation
VvvebJs copied to clipboard

Start the editor with a blank page without loading a file

Open DgMorais opened this issue 2 years ago • 2 comments

I'm using a PHP framework, is there an option to load a blank page when starting the editor instead of starting with a ready page?

DgMorais avatar Oct 24 '22 19:10 DgMorais

Load the page with javascript when needed.

the-ameen avatar Nov 13 '22 06:11 the-ameen

Hi

You can use about:none to load a really blank page

Vvveb.Builder.init('about:none', function() {
});

But I recommend using a basic html template like blank.html that has all the basic tags like <head><body> etc because not all browsers will fill all the missing basic elements and this can lead to all kind of issues.

Also the editor comes with bootstrap components that will need bootstrap.css to be loaded in the edited page to work, you will need to remove boostrap components if the css is not loaded in the page.

You can use the included new-page-blank-template.html as a base to customize your own blank.html.

givanz avatar Dec 22 '22 13:12 givanz