#13068 closed enhancement (fixed)
Autocomplete in change information on wiki edit page
Reported by: | Ryan J Ollos | Owned by: | Peter Suter |
---|---|---|---|
Priority: | normal | Component: | WikiAutoCompletePlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: |
Description
In wiki page Change information, it would be useful to autocomplete text in the Comment about this change text box. It accepts wiki formatting
Attachments (1)
Change History (10)
comment:1 follow-up: 4 Changed 8 years ago by
comment:2 Changed 8 years ago by
The plugin currently enables completions only for HTML elements matching $('textarea.wikitext'). But it looks like jquery-textcomplete added support for input[type=text]
elements, so enabling that seems possible.
However we would probably still only want to enable it for fields that actually support wikitext, so using something like input[type=text].wikitext
would be nice. But Trac does apparently no use the .wikitext
class for any <input>
elements, even when they do support wikitext like here.
comment:3 follow-up: 5 Changed 8 years ago by
Okay, if you think it would work best to add wikitext
or another specific class to the elements, I can investigate implementing that for Trac 1.2.1.
comment:4 Changed 8 years ago by
Replying to Ryan J Ollos:
any thoughts about eventually integrating this into Trac
I created #13071 to discuss this separately.
Changed 8 years ago by
Attachment: | T13068_complete_input_fields.diff added |
---|
comment:5 Changed 8 years ago by
Okay, if you think it would work best to add
wikitext
or another specific class to the elements, I can investigate implementing that for Trac 1.2.1.
Sounds great. This patch would enable the autocompletions (but doesn't until wikitext
class is added on relevant <input>
elements).
Removing .wikitext
from the last line in the patch enables autocompletions for all input fields (including non-wikitext fields like "Email:", "Max items per page" etc. and we definitely don't want that).
comment:6 Changed 8 years ago by
Thanks, the patch works well. I created trac:#12701 for adding the wikitext
class to input text fields that accept wiki markup.
comment:8 Changed 8 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
I haven't spent much time looking at the source for this plugin, but was wondering if you have any thoughts about eventually integrating this into Trac. If the plugin get a good amount of testing through use on this site and the edge cases get worked out, do you have an opinion on whether it would be a good fit and how much effort might be required to move it to Trac?