richie
richie copied to clipboard
Optimal CKeditor configuration
Feature Request
Is your feature request related to a problem or unsupported use case? Please describe. CKeditor could be nicer for cms page edition.
Describe the solution you'd like We can have a better CKeditor configuration, like removing some buttons that are not allways accurate like indent, format style, paragraph formatting that are not really responsive (because of inline styling with pixel values).
Also we could enable some other CKeditor plugin and make a minimal css to improve ckeditor preview to be more similar to final content render from frontend.
Describe alternatives you've considered
Define settings.CKEDITOR_SETTINGS to declare our own CKeditor config.
Discovery, Documentation, Adoption, Migration Strategy
- https://github.com/divio/djangocms-text-ckeditor#ckeditor_settings
- https://github.com/django-ckeditor/django-ckeditor#optional-customizing-ckeditor-editor (more detailled customization, note than django-ckeditor and djangocms-text-ckeditor does not share the same settings for ckeditor options but works exactly the same way);
- https://ckeditor.com/cke4/addon/codemirror CodeMirror plugin to greatly improve content source edition;
- https://ckeditor.com/cke4/addon/youtube plugin to directly include youtube (i did some another one for vimeo plateform) video with some options, have some disadvantages and benefits than the VideoPlugin content from cms;
- There is no clear CKeditor doc about CSS preview option but it just a matter about doing a minimal css to append using
contentsCssoption;


Do you want to work on it through a Pull Request? Yep.
There is also this app to include filer usage a CKEditor plugin instead of the CMS plugin which involve nested plugin for each file:
https://github.com/nephila/django-ckeditor-filebrowser-filer