Awesome inline autocompletion within textareas using At.js
http://ichord.github.io/At.js
This module adds integration for At.js and listeners you define with:
- Textareas without a WYSIWYG
- Bueditor textareas
- Ckeditor
- TinyMCE (currently buggy)
You define listeners which can be enabled on a Long text fields, in the listener definition you have...
- (Following uses an inline reference to users as an example)
- A trigger string or character ("@")
- Select an Entity type to populate the autocomplete (User)
- Bundles within that entity type (doesn't apply to User)
- The autocomplete results template as HTML (user picture with name)
- Entity property or field to search against (name property (username))
- Data to supply to the template available as tokens, can be properties and fields (picture, username)
- Whether or not to keep a record of usage, this will allow developers to respond when new mentions happen, and mentions are removed (implement hook so that users are sent an email when there's a new mention of them)
You can have as many as you like! Developers there are hooks to alter all sorts, see atjs.api.php.
This is an early development version and I'd like it to be a bit more tested in the wild first as there some options which expose a lot and can be considered quite "raw".
This module was created to be used by the Harmony Forum project.
Requirements:
- Ctools
- Libraries
- jQuery Update Set to supply jQuery 1.7 (will not work without this!)
- Entity API
Note that the versions specified are for maximum compatibility across plain, Ckeditor and TinyMCE.
Features exportable, made using https://drupal.org/project/ctex and ctools export ui, many lessons learned from https://drupal.org/project/maxlength .
Project information
- Module categories: Content Editing Experience, Developer Tools
- 35 sites report using this module
- Created by heylookalive on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
Development version: 7.x-1.x-dev updated 11 Feb 2017 at 21:48 UTC