Opened 8 years ago
Closed 8 years ago
#12701 closed enhancement (fixed)
Add wikitext class to input text fields
Reported by: | Ryan J Ollos | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Milestone: | 1.2.1 |
Component: | wiki system | Version: | |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: |
Added |
||
API Changes: | |||
Internal Changes: |
Description
The proposed change is to add the wikitext
class to any input text field that accepts wiki markup. For example:
-
trac/wiki/templates/wiki_edit_form.html
diff --git a/trac/wiki/templates/wiki_edit_form.html b/trac/wiki/templates/wiki_edit_form.html index b6f39effd..82b1146e9 100644
a b $page.text</textarea> 60 60 </div> 61 61 <div class="field"> 62 62 <label>Comment about this change (optional):<br /> 63 <input id="comment" type="text" class="trac-fullwidth " name="comment" value="$comment" />63 <input id="comment" type="text" class="trac-fullwidth wikitext" name="comment" value="$comment" /> 64 64 </label> 65 65 </div> 66 66 </div>
This would support autocompleting wiki text in those fields for WikiAutoCompletePlugin (#13068).
Attachments (0)
Change History (5)
follow-ups: 2 3 comment:1 by , 8 years ago
comment:2 by , 8 years ago
(Forgot to log in.)
Searching for
<input.*input"text"
finds 85 matches in 33 files. Most are not relevant.
That should say <input.*type="text"
.
comment:3 by , 8 years ago
Replying to anonymous:
So I think the main ones are: attachment description, milestone retarget comment, and wiki page comment.
Thanks, I overlooked milestone retarget comment. I think it makes sense for ticket fields with wiki formatting as well, but only on the ticket page and not the query page.
comment:4 by , 8 years ago
Milestone: | next-stable-1.2.x → 1.2.1 |
---|---|
Owner: | set to |
Status: | new → assigned |
Proposed changes in rjollos.git:t12701_wikitext_class_1.2_stable and rjollos.git:t12701_wikitext_class_trunk.
comment:5 by , 8 years ago
Release Notes: | modified (diff) |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
Searching for
<input.*input"text"
finds 85 matches in 33 files. Most are not relevant.So I think the main ones are: attachment description, milestone retarget comment, and wiki page comment.
The only other more questionable candidates I can see are search, ticket and query fields, but those would require more investigation.