Use your own CKEditorEdit this page
Warning: You are browsing the documentation for version 1.x which is not maintained anymore.
If some of your projects are still using this version, consider upgrading.
The bundle is shipped with the latest CKEditor 4 full release. If you don't want to use it, the bundle allows you to use your own by defining it in your configuration file or in your widget.
First of all, you need to download and extract your own CKEditor version in the web directory. For that, you have two possibilities:
- Directly put it in the web directory (
- Put it in the
/Resources/public/directory of any of your bundles and install the assets.
Then, to use your own CKEditor instead of the built-in, just need to register it in your configuration or in your widget:
1 2 3 4
# app/config/config.yml fos_ck_editor: base_path: "ckeditor" js_path: "ckeditor/ckeditor.js"
1 2 3 4
$builder->add('field', 'ckeditor', array( 'base_path' => 'ckeditor', 'js_path' => 'ckeditor/ckeditor.js', ));
Each path must be relative to the web directory.