Skip to content

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

Open
gabriel-dehan wants to merge 8 commits into
crowdint:masterfrom
gabriel-dehan:develop
Open

Handled textareas, enhanced autocompletion, handled autocompletion mixed with pure text, Javascript more configurable#186
gabriel-dehan wants to merge 8 commits into
crowdint:masterfrom
gabriel-dehan:develop

Conversation

@gabriel-dehan

Copy link
Copy Markdown
  • 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

rvsingh commented Dec 15, 2013

Copy link
Copy Markdown

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