Reputation: 11
I'm trying to integrate CKEditor into my Sonata admin panel. I installed it via composer require friendsofsymfony/ckeditor-bundle
and updated the assets using php bin/console assets:install
. When loading the page with a form field of type CKEditorType::class
, the resource ckeditor.js
loads fine (assets/bundles/fosckeditor/ckeditor-1cb7c0838d7fdf95d4aa4158bea9bdc0.js
), but then it tries to load /bundles/fosckeditor/config.js?t=O7L9
, /bundles/fosckeditor/skins/moono-lisa/editor.css?t=O7L9
and /bundles/fosckeditor/lang/ru.js?t=O7L9
, which fail with a 404
error. Why aren't these three files loading the same way as ckeditor.js
? The files exist in assets, and they are listed in public/assets/manifest.json
. In the fos_ckeditor.yaml
config, the default Twig template is specified as:
twig:
form_themes:
- '@FOSCKEditor/Form/ckeditor_widget.html.twig'
Upvotes: 0
Views: 26