Expose an option to hide the text format information of textarea fields

Created on 24 January 2015, almost 10 years ago
Updated 22 November 2023, about 1 year ago

Problem/Motivation

The information about text formats is a drupalism and most of the sites end up hiding that bit of information. Drupal 8 makes it a little more hard to hide so it might not be trivial to do.

Proposed resolution

- Add '#format_hide' property for the text format element.
- Expose this as an option for textarea widgets which support the #text_format type.

Remaining tasks

User interface changes

Adding a checkbox in manage form display to hide text formats.

API changes

✨ Feature request
Status

Closed: won't fix

Version

11.0 πŸ”₯

Component
FieldΒ  β†’

Last updated 2 days ago

Created by

πŸ‡ͺπŸ‡ΈSpain pcambra Asturies

Live updates comments and jobs are added and updated live.
  • Upgrade path

    It affects the ability to upgrade Drupal sites to a new major version. Preferred over version-specific tags such as D7 upgrade path.

  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

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.

  • πŸ‡¬πŸ‡§United Kingdom james.williams

    Update:

    ✨ Allow text field to enforce a specific text format Fixed allows hiding the text format information, when only one format is allowed to be used for the text_format element.

    But it leaves the 'About text formats' link behind. #2544188: Change the label "About text formats" if only one format is available β†’ is looking at improving the UX when that shows without the format selector.

    None of these cover the possibility of hiding the 'About text formats' link altogether (whatever it might get labelled). I guess this issue might probably still be need to wait for that latter issue to be resolved though.

  • πŸ‡¬πŸ‡§United Kingdom jonathanshaw Stroud, UK

    I think that

    1. the scope of the current issue is unclear, whether it is referring to the text format selector or the text format information link

    2. hiding the link but not the selector is not a 95% use case and should not be a core option

    3. this issue should be about giving the option to hide both the selector and the link together, which is relevant if:
    - a. the default format is different for different users, but you don't want them to choose
    - b. only a single format is allowed, so no selector is shown, but you still want to hide the link

    4. even with this reduced scope, I have doubts about whether this is a common enough use case for this setting to belong in core

  • Status changed to Needs work over 1 year ago
  • πŸ‡¬πŸ‡§United Kingdom jonathanshaw Stroud, UK

    I don't think it should be postponed, if it should be open at all. It's independent of the issue of the link's wording.

  • Status changed to Closed: won't fix over 1 year ago
  • πŸ‡¬πŸ‡§United Kingdom james.williams

    Yeah I think I’m inclined to agree. Even if there is an outstanding feature that could be implemented, it’s possibly for too narrow a use case, and so not worth supporting in core.

    The work already done in core to allow configuring allowed text formats, plus the possible relabelling, could be sufficient for core.

    I’m going to be brave and just close this issue - it can always be reopened if there really is enough support for it, though it’s scope would then need clarifying.

  • πŸ‡¨πŸ‡¦Canada pierre paul lefebvre

    For people finding this issue from popular search engines, the work is now happening in https://www.drupal.org/project/drupal/issues/3323007 ✨ Add an option to 'hide filter tips' on text fields Needs work

Production build 0.71.5 2024