Feature #1179
closedOptionally allow Text and Long Text custom fields support wiki formatting
Added by Leandro Lucarella over 16 years ago. Updated over 8 years ago.
0%
Description
It would be very helpful if Text and Long Text custom fields support wiki formatting. It would be even better if the wiki support can be activated or deactivated in a per-field basis, using a checkbox in the custom field properties (something like "Allow wiki format" next to the "Required" checkbox).
Files
screenshot1.jpg (18.4 KB) screenshot1.jpg | Luis Blasco, 2015-12-29 19:38 |
Related issues
Updated by Arthaey Angosii over 16 years ago
Implementing this would effectively make issue #1358 a duplicate of this by allowing me to have links in any custom field.
Updated by Jean-Baptiste Barth over 14 years ago
Can you try the patch I proposed in #5794 and tell me if it works and fit your needs ?
Updated by Leandro Lucarella over 14 years ago
Jean-Baptiste Barth wrote:
Can you try the patch I proposed in #5794 and tell me if it works and fit your needs ?
I'm sorry, I don't have a Redmine instance to play with at the moment, but I took to the patches and, if I understand correctly what they do (bare in mind I'm not well versed in Ruby nor familiar with Redmine code), it's exactly what I wanted.
I prefer to have the option to textilize or not, but it wouldn't be too terrible if there is no option (it will not be backward compatible, though, and could cause some pain in people already using it as plain text).
Thanks!
Updated by ju mar over 13 years ago
+1
I am also interested in having wiki-formatting in Text/Long Text custom fields. And I have a redmine install for testing purpose so I can test patches if needed.
Updated by Andriy Lesyuk almost 13 years ago
I just have released Extended fields plugin which adds "Wiki text" custom field type... Please check.
Updated by Maxim Nikolaevich over 12 years ago
Guys,
I think long text custom field should be used as "description" field (i mean full support wiki syntax) and simple text field should not.
I believe it solves many issues related with this issue with simplest way - without any additional options
Updated by Ilya Ishmatov almost 12 years ago
Hi i use fix on my redmine:
I use Redmine::WikiFormatting.to_html for "text" custom field.
./app/helper/issue_helper.rb
def render_custom_fields_rows(issue)
return if issue.custom_field_values.empty?
ordered_values = []
half = (issue.custom_field_values.size / 2.0).ceil
half.times do |i|
ordered_values << issue.custom_field_values[i]
ordered_values << issue.custom_field_values[i + half]
end
s = "<tr>\n"
n = 0
ordered_values.compact.each do |value|
s << "</tr>\n<tr>\n" if n > 0 && (n % 2) == 0
s << "\t<th>#{ h(value.custom_field.name) }:</th><td>#{ show_value(value) }</td>\n"
n += 1
end
s << "</tr>\n"
s.html_safe
end
./lib/redmine/custom_field_format.rb
def format_as_text(value)
Redmine::WikiFormatting.to_html(Setting.text_formatting, value.to_s)
end
['string','int','float','list'].each do |name|
define_method("format_as_#{name}") {|value| return value}
end
Updated by Dipan Mehta over 11 years ago
Andriy Lesyuk wrote:
I just have released Extended fields plugin which adds "Wiki text" custom field type... Please check.
I personally use this plugin. However, there is a critical challenge I faced which didn't allow me to use it fully. The 'Wiki text' is a new type of field and fields types are not changeable AFTER they are created. so long text fields which we have already created cann't take the benefit of this. I know I could tinker DB - but want to avoid this.
Updated by Maxim Nikolaevich over 11 years ago
Maxim Nikolaevich wrote:
Guys,
I think long text custom field should be used as "description" field (i mean full support wiki syntax) and simple text field should not.
I believe it solves many issues related with this issue with simplest way - without any additional options
I just wanna show pic about extra options: http://verkoren.wordpress.com/2012/04/07/your-companys-app-vs-typical-apple-and-google-products/
Guys from team - i can do patch to extend long text with full wiki support - If you agree with me that this best solution
Updated by Dipan Mehta over 11 years ago
Maxim Nikolaevich wrote:
I just wanna show pic about extra options: http://verkoren.wordpress.com/2012/04/07/your-companys-app-vs-typical-apple-and-google-products/
Guys from team - i can do patch to extend long text with full wiki support - If you agree with me that this best solution
Don't know what exactly was the connotation of the link you posted. Never-the-less, I think this is the essential feature that is quite desirable.
+100
Updated by Daniel Felix over 11 years ago
Updated by john aylward over 11 years ago
Dipan Mehta wrote:
Andriy Lesyuk wrote:
I just have released Extended fields plugin which adds "Wiki text" custom field type... Please check.
I personally use this plugin. However, there is a critical challenge I faced which didn't allow me to use it fully. The 'Wiki text' is a new type of field and fields types are not changeable AFTER they are created. so long text fields which we have already created cann't take the benefit of this. I know I could tinker DB - but want to avoid this.
The other issue I have with this is that the wikitext field is still in the column layout, so an H1 or H2 gets wrapped, and I found it wasn't very useful. I wanted to use it as a place to keep test cases for our QA people, but it's so unwieldy at the moment, I'll stick with using the description field.
I think what I'm looking for is more of a secondary description field. Somewhere I can put nicely formatted text for test cases that doesn't require me to update the description or get lost in the Notes.
Updated by David Chiew over 11 years ago
+100 for this feature, this feature would be awesome. I'm also trying to use long text fields to put Test Cases in (its a required field so we don't forget!), and the formatting of this field would really help
Updated by Toshi MARUYAMA almost 11 years ago
- Related to Feature #3543: Improve 'long text' custom fields added
Updated by Jean-Philippe Lang almost 11 years ago
- Status changed from New to Closed
- Assignee set to Jean-Philippe Lang
- Resolution set to Fixed
Feature added in 2.5.0, Text and Long text custom fields now support optional text formatting.
Updated by Dipan Mehta almost 11 years ago
Will this allow existing text fields to get text formatting? or will it be applicable on new fields taken only?
Updated by Jean-Philippe Lang almost 11 years ago
The option is available for existing or new custom fields.
Updated by Darth Vader almost 11 years ago
Which checkin is this change implemented in?
Updated by Luis Blasco about 9 years ago
Sorry if this is not the place to post but I can't see this feature having correctly been implemented in Redmine (old or latest versions).
When I create a long text custom field, I click on the check box "Text formatting", but when used in a tracker the field doesn't show the text formatting icons above.
Any help would be appreciated.
Thanks!
Updated by Toshi MARUYAMA almost 9 years ago
Luis Blasco wrote:
When I create a long text custom field, I click on the check box "Text formatting", but when used in a tracker the field doesn't show the text formatting icons above.
What do you mean "icons"?
Updated by Luis Blasco almost 9 years ago
- File screenshot1.jpg screenshot1.jpg added
Actually I meant the formatting buttons above the text field.
Updated by Toshi MARUYAMA almost 9 years ago
Luis Blasco wrote:
Actually I meant the formatting buttons above the text field.
Please create new issue for request.
Updated by Mischa The Evil over 7 years ago
- Related to Feature #21924: Formatting buttons on long text custom fields added
Updated by Go MAEDA almost 6 years ago
- Related to Defect #30027: Some styles (for ex: borders for tables) in a custom field with text formatting enabled are not displayed added