This framework is great。It helped me a lot。
Now I want to create a project through this framework implementation that includes multiple pages.
can you give me some adivce?
You can make use of the following
{
current: 1,
pages: [
{ components: [], style: [] },
{ components: [], style: [] },
...
]
}
When you change the page, at first you store the current template:
const currentPage = pages[currentIndex];
currentPage.components = editor.getComponents();
currentPage.style = editor.getStyle();
and then you change the editor with the next one
const nextPage = pages[nextIndex];
editor.setComponents(nextPage.components);
editor.setStyle(nextPage.style);
Reference Link: https://github.com/ronaldaug/gramateria/issues/2
@inventorbit It's a really great solution
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
You can make use of the following
When you change the page, at first you store the current template:
and then you change the editor with the next one
Reference Link: https://github.com/ronaldaug/gramateria/issues/2