Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handled textareas, enhanced autocompletion, handled autocompletion mixed with pure text, Javascript more configurable #186

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

gabriel-dehan
Copy link

  • Javascript code refactoring (as the code base grew, I created modules and classes);
  • Clearly bigger file : 6.2k minified. Should try packing.
  • Now handle textareas;
  • Can now be set up with a whole new set of options via Javascript : $('#my_element').railsAutocomplete({ /* options */ });
  • Term autocompletion now works on previous terms, and the autocompletion will no longer happen at the end of the input/textarea, but were the cursor stands;
  • Can now handle writing terms amongst normal non completed text through the use of a delimiter. The autocompletion is disabled while writing normal text and is triggered when one presses the delimiter key (like '#' or ',', ...). There are still a few glitches;
  • Terms are now using a comma delimiter by default, enabling multiple terms autocompletion in a same input;
  • Delimiters can be at the beginning or the end of the term string. Allowing for "#term1 #term2" or "term1, term2";
  • is now used for autocompletion and an option allows to keep the focus in the current element;
  • The current autocompleted term can now be filtered before processing.

@rvsingh
Copy link

rvsingh commented Dec 15, 2013

How can we get autocomplete to work on a textarea?
http://stackoverflow.com/questions/20594445/simple-form-input-as-both-text-and-autocomplete

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants