Open alexander-schranz opened 7 years ago
It would be very helpful if this could be extended and updated with the current release. The documentation for js code part is helpful, but can be found elsewhere (e.g. stackoverflow, CKEditor docs). What I find lacking is where to place the code and additional steps (e.g. building). Thank you.
This code is for the old 1.6 Version. We currently have not yet a documentation for it in 2.x but we happy if somebody like to contribute it. There is for 2.x a example demo Pull Request: https://github.com/sulu/sulu-demo/pull/77 if you are not sure how to implement it there.
This is requested sometimes but iframes and images are not recomended by sulu in the texteditor it should use blocks with different types instead, but here are some example how to extend the CKeditor.
You need to register your AppBundle as AdminBundle and add the code to your main.js file here: https://gist.github.com/alexander-schranz/2c1c46b5772ea9143774931fd3d92608#file-main-js-L19
1. Example: Add new toolbar button:
2. Example: Add custom styles
http://docs.ckeditor.com/#!/guide/dev_howtos_styles:
3. Example: Add CKEditor Core plugin
Available plugins can be found here: https://github.com/sulu/sulu/tree/1.6.28/src/Sulu/Bundle/AdminBundle/Resources/public/js/vendor/husky/vendor/ckeditor/plugins
4. Example: Add External Plugins:
For all Examples:
Issues: