CKEditor
for site builders/developers
Q&A with the CKEditor developers!
@ckeditor + @wimleers
Agenda
1. Demo
- Drupal 7 vs. Drupal 8
- Configuring CKEditor
- ACF (Advanced Content Filter)
- Image uploading/alignment/captions …
- Structured content: CKE captioned image widget
- Site-specific styles
- The technical possibilities
2. Q&A
Drupal 7 vs. Drupal 8
-
Two choices:
- WYSIWYG module (manually download editor)
- CKEditor module (editor-specific module)
-
Poor configuration UX in both cases
Configuring CKEditor
- Text Editor vs. WYSIWYG module
- Great UX
- Filter settings automatically updated!
Advanced Content Filter (ACF)
- No more crappy HTML!
- Manually, CKEditor buttons, paste: no matter
- CKE plugin metadata: required & allowed HTML
Image uploading/alignment/captions
- Uploading integrated, enables image browsing in contrib
- Image captions
Structured content: CKE captioned image widget
- Caption filter:
data-caption
& data-align
- CKEditor Widget transforms this on-the-fly
WordPress 3.6.1
[caption id="" align="aligncenter" width="55"]This is my caption![/caption]
Drupal 8
Site-specific styles
- Anything you want
- CSS in theme, only
class
attributes in HTML
The technical possibilities
- Add more plugins:
- ckeditor.com/addons/plugins, or
- Custom plugins:
Drupal.ckeditor.openDialog()
- Write Drupal plugin:
CKEditorPluginInterface
- Amazing possibilities with CKE Widgets! e.g.: MathJax