Project

General

Profile

Actions

Feature #43259

open

Replace jsToolBar with a server-rendered wiki toolbar handled by a Stimulus controller

Added by Takashi Kato about 1 year ago. Updated about 1 hour ago.

Status:
New
Priority:
Normal
Category:
Code cleanup/refactoring
Target version:
Resolution:

Description

This patch is based on a branch from #43165, with minor modifications.

  • Converting the entire library to ES modules eliminates the risk of variable name collisions.
  • Refactored jstoolbar from the old prototype-based syntax to a more readable class syntax.
  • Switched DOM element creation from JavaScript to ERB, which makes preparing and cloning DOM elements easier by using the <template> element.
  • Moved all jstoolbar locales to config/locales to simplify i18n. * Added the missing tasklist locale for both ja and en.
  • Integrated the list-autofill controller into jstoolbar as both controllers are used in the same places.

Applying this patch along with #42521 enables the implementation of #40310.

This patch can be applied to r24014


Files


Related issues

Related to Redmine - Patch #37559: Use meta element instead of javascript objectNewMarius BĂLTEANUActions
Actions

Also available in: Atom PDF