-
-
Notifications
You must be signed in to change notification settings - Fork 733
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to make multipage editor ? #194
Comments
@prevwong , Any Idea? |
Hi @Bhaliya-jigar I think craft.js is agnostic on how you implement this multipage solution, and in my opinion this is great, because you can simply use it in any of your project. I can tell you for my use case, I have created one component with the Editor and just pass in the props I receive from the DB on each page request. And it works flawlessly |
@hugominas Thanks for the reply. So you are storing props for each page separately in DB, right? For me it is single field holding all page data. |
Hi @Bhaliya-jigar. You should be able to use multiple |
There should be only one |
@matdru that is a great point how would I go about cleaning the state and rendering the stored clean state? I thought all the information in there was necessary for craft to render. Thanks in advance |
Realistically, when not editing content, none of events / rules / related properties are very useful, so i presume they can be stripped out, that being said, if the landing page and editor are separate ( let's say they are two different views ) we can transform state even further ( that will require using a custom renderer instead of craft to show the page, so there is extra work involved, but it gives you more power over how things are displayed ) |
Got it, so if I remove this proprieties will they be added back when the |
Is it possible to make a multipage editor with Craft JS?
i have started with this example. i have tried to add multiple
<Frame>
within one<Editor>
without any luck.Should i have to create separate
<Editor>
for each page ?The text was updated successfully, but these errors were encountered: