Project

General

Profile

Actions

Feature #43959

open

add wikitoolbar on custom field on other types than issue

Feature #43959: add wikitoolbar on custom field on other types than issue

Added by Brice Beaumesnil 8 months ago. Updated 2 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Custom fields
Target version:
Resolution:

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 1 (0 open — 1 closed)

Related to Redmine - Feature #33256: Show wiki toolbar for spent time custom fields with text formatting enabledClosedGo MAEDAActions

Updated by Go MAEDA 8 months ago Actions #1

Thank you for posting the patch. I added tests for the patch.

Updated by Go MAEDA 8 months ago Actions #2

  • Target version changed from Candidate for next major release to 7.0.0

Setting the target version to 7.0.0.

Updated by Go MAEDA 8 months ago Actions #3

  • 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 2 months ago Actions #4

  • Related to Feature #33256: Show wiki toolbar for spent time custom fields with text formatting enabled added

Updated by Go MAEDA 2 months ago Actions #5

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.

Updated by Go MAEDA 2 months ago Actions #6

  • Target version changed from Candidate for next major release to 7.1.0

Setting the target version to 7.1.0.

Actions

Also available in: PDF Atom