-
I can get HTML of each page using pageId this way. I have to select the page to get it's HTML. I don't want to select the page to get its HTML because it switch pages on canvas. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
You can do this const allPages = editor.Pages.getAll();
const htmlAll = allPages.map(p => p.getMainComponent().toHTML()) |
Beta Was this translation helpful? Give feedback.
-
@artf allPages.map(p => p.getMainComponent().toHTML()) by using this we only getting HTM, is there any way to get Css with it, for example allPages.map(p => p.getMainComponent().toCSS()) const component = page.getMainComponent() |
Beta Was this translation helpful? Give feedback.
You can do this