After the Deadline for CKEditor - README
After the Deadline is an open source software service that checks
spelling, style, and grammar. This package contains an AtD CKEditor Plugin and instructions on how to
use AtD with CKEditor.
- Extract this archive into your ckeditor/plugins directory.
- You'll need to make up an API key. Ideally your application name followed by a string that is unique to this user is best. There is a performance benefit to using the same key for subsequent requests.
- Modify contents.css in your ckeditor/ directory and add the styles from atd.css to it.
- Modify config.js in your ckeditor/ directory (or where ever you're calling CKEditor from) to load the AtD plugin:
CKEDITOR.editorConfig = function( config )
config.extraPlugins = "atd-ckeditor";
config.toolbar = 'MyToolbarSet';
/* you can omit config.atd_rpc and it will default to the proxy.php in the same dir as the plugin */
config.atd_rpc = '/path/to/proxy.php?url=';
config.atd_api_key = 'WPORG-dkfjhds';
- As a final note, make sure your webpage is encoded in UTF-8 format. AJAX requests use the encoding of the parent website and AtD expects UTF-8. This is important as AtD supports accented characters and we're working to support more languages.
Using your own AtD Server
You can download the After the Deadline server from open.afterthedeadline.com and serve your own requests. If
you go this route, modify server/proxy.php to connect to your AtD host. All the other steps are the same.
This plugin was developed as a proof-of-concept for the AtD core UI module. It lacks the polish of the other AtD plugins and needs a maintainer. Patches are very welcome.
Here is a list of things that need to be done:
- Test and fix bugs with Internet Explorer (there may not be any for all I know)
- Need to use something other than CKEditor Context Menu plugin for errors or fix CKEditor Context Menu. Here are the issues:
- Context menu is fixed width and doesn't resize for longer errors
- Context menu doesn't honor Ctrl+Click for single button mice
- Context menu uses cursor placement to determine which element the context menu was clicked on--makes using the menu awkward, user has to click the spelling error and then right click to bring up the context menu.
- Need to find a way to get CKEditor to load AtD CSS on its own. I tried a few different ways, you may do better than I did.
- Need to add "explain" menu for errors that have explanations
- Should update plugin to use editor.config.atd_show_types and editor.config.atd_ignore_strings values to set preferences in Core UI Module
A demo this extension is at: http://www.polishmywriting.com/ckeditor/
Get support from the atd-developers mailing list.