Skip to content

A jQuery module that allows word autocompletion anywhere in a conteneditable

License

Notifications You must be signed in to change notification settings

CellyApp/ContentComplete

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ContentComplete

A jQuery plugin developed by Celly for autocompleting hashtags and at symbol mentions. See it in action https://cel.ly

screen shot

ContentComplete is a jQuery library that allows you to autocomplete the current word of a contenteditable div. The autocomplete dropdown is triggered by a special character being typed. ContentComplete supports keyboard and mouse controls to choose the result.

License

ContentComplete is release under the MIT license. See COPYING for further license information.

Usage:

var ccOptions = {
    "atEndpoint": "/myAtEndpoint?query=",
    "hashEndpoint": "/myHashEndpoint?query=",
    "showNoResults": true
}
$("#myDiv").contentComplete(ccOptions);

Example

There is a working toy example included in the repo that can be run statically off of the file system. Note that the staticness of the example prevents real autocomplete from working, but you should be able to get an idea of what is provided.

About

A jQuery module that allows word autocompletion anywhere in a conteneditable

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages