clear_tokens UI is not working

Created on 9 June 2024, 7 months ago
Updated 9 July 2024, 6 months ago

Problem/Motivation

The clear_tokens sub forms are not appearing (anywhere, I think) so you can not tell a display to not render empty tokens.

The clear_tokens code still seems to be fine, so if you change the defaults to TRUE in the config then empty tokens don't get displayed, it's just that you can no longer turn on/off the clear_token behaviour.

Steps to reproduce

  1. install and activate v4.0.0
  2. navigate to the 'manage display' of a content type
  3. click on 'use inline formatter display', note that empty token replacement sub-form does not appear
πŸ› Bug report
Status

Active

Version

4.0

Component

User interface

Created by

πŸ‡¬πŸ‡§United Kingdom kmv

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

Comments & Activities

  • Issue created by @kmv
  • πŸ‡¬πŸ‡§United Kingdom kmv

    I note that clear_tokens was moved to the editor's config in v4.

    So, for anyone who may need the workaround in the meantime, you can change the default behaviour via:
    drush config:set editor.editor.iff_ace_editor settings.clear_tokens true

  • πŸ‡ΊπŸ‡ΈUnited States bobbysaul

    Hello,
    Sorry for being some time before getting back to this. With the update to version 4 of the module the checkbox for clearing tokens if they are empty was moved from the module's settings form (/admin/config/inline_formatter_field/settings) into the editor setting (/admin/config/content/formats/manage/iff_ace_editor).

    There is a small note in the release notes β†’ , but I guess it is not very clear. Sorry, for the confusion.

    Note that `iff_ace_editor` is the machine name for the default editor that this module is set up to use although this could be changed (which is what config your drush command changes). In which case, depending on the editor type the settings could be different. But, for all editors of type Ace Editor (iff_ace_editor), they will have the same configuration settings.

    Hopefully this makes sense.

  • πŸ‡¬πŸ‡§United Kingdom kmv

    Confirmed. I can indeed see it over in the text formatters.

    I can totally see why it's been moved there, but honestly, I would never have thought to look there; I think of that area of the config as being for editor stuff rather than token stuff. But that confusion can be cleared up with a documentation change. Thanks for the clarification!

    And thanks for the awesome module. One of the most incredible and yet underrated and unknown IMHO.

Production build 0.71.5 2024