Handled textareas, enhanced autocompletion, handled autocompletion mixed with pure text, Javascript more configurable#186
Open
gabriel-dehan wants to merge 8 commits into
Open
Conversation
gabriel-dehan
commented
Nov 18, 2012
- 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.
|
How can we get autocomplete to work on a textarea? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.