Support for string fields

Created on 11 February 2021, over 3 years ago
Updated 20 July 2023, 12 months ago

Problem/Motivation

In order to improve accessibility we want our editors to be able to mark part of the node title as belonging to another language. To meet that requirement we use HTML Title β†’ module. This allows the accessibility requirement to be met, but the editorial UX is horrible in that they need to type in actual HTML tags with attributes. It would be much better if we could use this module to provide a specially configured editor for this. Unfortunately "string" type is not supported in _allowed_formats_field_types(). However if we add "string" type to the list of supported types and tweak allowed_formats_field_widget_form_alter() a bit, we can show the specified editor on the node title field!

Proposed resolution

Extend the list of supported field types and tweak allowed_formats_field_widget_form_alter().

Remaining tasks

  1. Confirm that feature would be accepted
  2. Patch
  3. Review
  4. Commit

User interface changes

None

API changes

Additional field type supported.

Data model changes

None

✨ Feature request
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡³πŸ‡ΏNew Zealand RoSk0 Wellington

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024