Replies: 3 comments
-
|
I have not though about this in depth, maybe we can talk about how this could look like. |
Beta Was this translation helpful? Give feedback.
-
|
From that we talked about @thopra: The visual_editor can provide this API to others. |
Beta Was this translation helpful? Give feedback.
-
|
Hey, as discussed, here's the link to a repo with rough demo setup: https://github.com/thopra/demo-visual-editor-headless Most of the changes I have done are just quick and dirty prototyping, just to get to a point where there's a real blocker. I've included my findings of what each included package would need to change for this to have a chance of working out in the readme file, here's what I've wrote down for visual_editor: Provide one or more classes as public API to other extension developersWe need some public service class(es) that will provide the following data:
Not required, but would be nice: Event / Callback when changes require a reloadIt would be nice to have an event being dispatched that we can use to reload the pagedata from the api or react to changes to tha page that require to update state in the frontend Proper CORS support or documentation of the limitationsThis demo uses a single domain setup (see nginx config). Cross domain setup also works up to a certain point, but due to limitations in the TYPO3 core, messaging between frames in the backend module will never work, unless major changes are coming to TYPO3 itself. While we CAN do this (by reverse-proxying anything other than /typo3 /_assets and /fileadmin to nuxt) this also means that effectively this excludes multi-domain setups in general. I have not found a way around this so far. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey!
I'm following this project with a lot of interest. Visual editing is THE missing feature in TYPO3 so I appreciate any effort going into that direction very much.
However, a lot of us have moved away from the traditional coupled approach to frontend templating with fluid and are instead building on top of the API provided by friendsoftypo3/headless, for example by using vue.js for frontend rendering (using the nuxt/typo3 package or other implementations).
Since this extension heavily relies on ViewHelpers to wrap web components and load the required JS, I would be very interested if there are any plans or thoughts of making this extension compatible with a frontend that is not using fluid (and if so, if there are already any ideas how that could look like) or if you would rather see both extensions to be mutually exclusive.
I can imagine that while porting/integrating the components to something like vue and making requests to match what's expected by the middleware could easily be done, integration of RTE could especially prove very difficult in this scenario because it requires its configuration/plugins coming from the backend.
I'd be interested in your general approach to this.
Beta Was this translation helpful? Give feedback.
All reactions