-
Notifications
You must be signed in to change notification settings - Fork 116
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
Add inline editing capability to the React ElementEditor for top level elements #295
Comments
We can override the injector definition for Field names are likely to have conflicts but
There's an example on the redux-form website for submitting redux forms from separate unrelated react components. We can entwine this into the existing entwine stuff 😉 . We will have to define our own redux form as we need to specify a name in the config, but it's a relatively simple component that we can override and inject. Alternatively, it might be a good idea to update admin to have form names within the redux form config.
React change tracker exists and works separately from the entwine version. It's trivial to adjust the settings for the entwine version, but leaving it makes sense so it can continue to adjust the state of the save button. The react version is in two parts. One part is bound to the actions (buttons) and updates them if it tracks any state changes. The other part is part of the router and observes changes on redux forms. Considering we can't use a router for this, the react version won't be giving us a warning.
We should be removing GridField (touchwood). We will need silverstripe/silverstripe-admin#590 to fully remove it though. Submitting the form and saving with a mutation is a little more complex. FormBuilderLoader is already set up to handle the REST way of doing things by default. |
Sorry, I mean that user defined CMS fields for their content blocks could be a GridField and won't work in this situation Nice write up - looks good!
We might need to start work on a new FormBuilderLoader or modify the old one to allow for GraphQL mutation HOCs instead. That is the direction that core will be heading in anyway |
Right - we'll have to wait for silverstripe/silverstripe-admin#556 AND silverstripe/silverstripe-admin#590 to completely detach ourselves from GridField. Additionally, block authors who add GridFields to |
Closing this issue. I've raised individual tasks to resolve this - noted in the original post. |
Top level elements should be able to be edited inline in the ElementEditor React app, within the context of a page's CMS fields.
In the future this will include some level of nesting, e.g. layout blocks or lists of blocks.
Considerations:
Tasks:
FormBuilderLoader
in-line on blocks #327 -FormBuilderLoader
in-lineThe text was updated successfully, but these errors were encountered: