NOTE: This project was only ever created as a proof-of-concept and originally intended for internal purposes which no longer exist. It was never properly finished and is no longer being developed. We may pick it up again in the future, but for now please don't expect it to be "fully functional".
- jQuery Update - Minimum version of jQuery 1.7 is required.
- CKEditor module - Use the latest 7.x-1.x-dev for now.
- Libraries API
- Entity API
- Views
- CKEditor 4.3+ - Requires
Full Packageplus theWidgetplugin (must add manually) installed insites/all/libraries. - Rangy 1.3+ - Installed in
sites/all/libraries. - JSON2 - Installed in
sites/all/libraries.
- Timeago jQuery Plugin - Relative times for comments
To enable CKEditor comments, there is a three step process:
- CKEditor Profiles: It is recommended to enable the actual plugin for all CKEditor profiles, regardless if you will use them on the profile. This can be done by visiting
admin/config/content/ckeditor. Under your profile'sEditor appearancesection: * Drag and drop the comment icon () to the position you desire on your toolbar. * Then enable the
CKEditor commentsplugin below it. - Fields: Both
Long textandLong text with summaryfield types can be independantly managed to enable inline commenting. Edit the field and checkEnable inline comments in CKEditorunder theText processingsection. - Filter: A field raw value may contain comment wrappers:
<comment data-cid="1234">my commented text</comment>. This helps ensure better comment positioning when initially loading comments. To filter these out and un-wrap the commented text from these tags for you displayed (safe) value: * Go to the text format that handles this field:admin/config/content/formatsand click edit. * Enable theClean CKEditor commentsfilter.
If you plan on developing this module, it requires Grunt - The JavaScript Task Runner.
- Navigate into the root of this project and run:
npm install - After the development node modules have been installed, you can run:
grunt watch
This watches for any changes made in the ./src folder and automatically compile them into the appropriate ./plugin file.
grunt build- Compiles all files and increments the MINOR version of the project.grunt build:major- Compiles all files and increments the MAJOR version of the project.
Grunt also automatically compiles the documentation for this plugin with JSDuck. You can view the documenation at: https://rawgithub.com/tag1consulting/ckeditor_comment/master/docs/index.html#!/api
