Core UI Module for After the Deadline
OTHER License
After the Deadline is an open source software service that checks spelling, style, and grammar.
This package contains an adaptable JavaScript object to make it easier to add After the Deadline to other WYSIWYG editors and libraries.
This package includes logic to parse the AtD XML protocol, walk a DOM structure and highlight errors, remove highlighted errors, and locate error metadata and suggestions given a highlighted element. If you intend to use AtD beyond the maintained front-end plugins, this extension will save you time.
Automattic no longer supports this module. We're putting it on Github so that you can feel free to fork it, hack it, and release your own version.
To use this module, you must instantiate it and then add several functions to the module to tell it how to perform certain actions in your environment. To instantiate this module:
The functions that you must define are:
You are responsible for adding the contents of the atd.css stylesheet to your application or library. These styles tell your browser how to display the AtD markup to your user.
Once you load the stylesheet and provide implementations of these functions to the module, then you can use the Core UI API.
Here are some tips I've learned the hard way:
There are several plugins/libraries that use this module, for example:
To localize the strings in this extension, create an object with the localized strings. Here is an example:
Then make AtD use these strings:
Optionally, you can redefine the core.getLang("key", "default")
function to hook into your libraries localization function. This module
uses the menu_title_spelling and menu_title_repeated_word keys.
Unless otherwise noted, the resources here are licensed under LGPL.
We (Automattic) are no longer supporting this library. This code has always been open source. We're putting it on Github so that you can feel free to fork it, hack it, and release your own version.
Join the atd-developers list for support.