Feature #43959
openadd wikitoolbar on custom field on other types than issue
Description
Hello,
If we add long text custom field with text formatting on version for example : no wikitoolbar appear.
In this case, the line
<%= wikitoolbar_for "version_custom_field_values_#{value.custom_field_id}" if value.custom_field.full_text_formatting? %>
can be add on the customfield loop in the file app/views/versions/_form.html.erb
best regards
Files
Related issues
Updated by Go MAEDA 6 months ago
- File 0001-Show-wiki-toolbar-for-long-text-custom-fields-on-ver.patch 0001-Show-wiki-toolbar-for-long-text-custom-fields-on-ver.patch added
- Target version set to Candidate for next major release
Thank you for posting the patch. I added tests for the patch.
Updated by Go MAEDA 6 months ago
- Target version changed from 7.0.0 to Candidate for next major release
I will also add a toolbar to the long text custom fields for the following types of objects:
- Spent time
- Projects
- Time tracking activities
However, I will not add a toolbar to custom fields for users, because the area where the custom field textarea is displayed is narrow and does not have sufficient width to show the toolbar.
Updated by Go MAEDA 21 days ago
- Related to Feature #33256: Show wiki toolbar for spent time custom fields with text formatting enabled added
Updated by Go MAEDA 21 days ago
- File 0001-Show-wiki-toolbar-for-long-text-custom-fields-on-obj.patch 0001-Show-wiki-toolbar-for-long-text-custom-fields-on-obj.patch added
The attached patch adds the wiki toolbar to long text custom fields with text formatting enabled on the following forms:
- Versions
- Projects
- Enumerations (time tracking activities, issue priorities and document categories)
- Documents
- Groups
- Spent time fields in the issue edit form
Issues and the spent time form are not changed because they already have the toolbar (see #33256 for the spent time form). There are also some cases where the toolbar is not added:
- User custom fields: the area for the custom fields is too narrow for the toolbar.
- The "Time tracking" tab in project settings: the custom fields are displayed in table cells.
- The "New version" modal opened from the issue form: the CSS for the toolbar tabs only applies inside #content, so the toolbar is not displayed correctly in the modal.