I want to edit content on my app using the WYSIWYG editor in CMF. The getting started tutorials are all focused on how to setup the backend of the application. However, the frontend is what I don't really understand how to setup.
In these examples, code inspection shows the special RDF attributes added to the markup, such as about
and property
. I assume I'm supposed to add these to my Twig templates, but how are the changes submitted?
The CreateBundle handles this. All you need to do is enable the bundle, define a mapping file and render the document in the template with twig functions, similar to when rendering a form. The CreateBundle provides a controller that handles the back channel for posting the updated data. Read the detailed documentation in the Symfony CMF documentation.