Answer the question
In order to leave comments, you need to log in
How should a symfony controller designed to work with the CKEditor bundle look like?
Hello dear community!
I'm trying to install FOS\CKEditorBundle for the admin panel (no bundles, simple logic)
Installed the bundle, registered it, connected it - it works
Now I'm trying to use the ability to insert an image in the editor
I created a separate controller, registered a route and added this route to the editor config
filebrowserUploadRoute: "media_upload"
registered route, everything is OK
But what should be in the controller itself, I just can’t understand, I didn’t find anything in the docks, logically, I have to paint this matter myself, but I can’t understand how, what should be there? How is the download handled?
Can you post an example?
Thanks
Answer the question
In order to leave comments, you need to log in
There is also a whole topic on the site with all the options - How to handle file browse/upload
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question