Make WordPress Core

Changeset 58372


Ignore:
Timestamp:
06/09/2024 02:30:30 PM (6 months ago)
Author:
joedolson
Message:

Media: Accessibility: Add filter for TinyMCE in media descriptions.

Add a filter to enable TinyMCE in the media description textarea on the attachment details screen.

The media description field may be used to provide extended descriptions of images and videos, such as a transcript or detailed graphic explanations. In these uses, it will generally require structural elements like paragraphs. Having the ability to enable TinyMCE makes it easier for users to add this content without HTML knowledge.

Props juliemoynat, sebastienserre, mukesh27, joedolson.
Fixes #60158.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/media.php

    r58240 r58372  
    32683268        'textarea_rows' => 5,
    32693269        'media_buttons' => false,
    3270         'tinymce'       => false,
     3270        /**
     3271         * Filter the TinyMCE argument for the media description field on the attachment details screen.
     3272         *
     3273         * @since 6.6.0
     3274         *
     3275         * @param bool Activate TinyMCE in media description field. Default false.
     3276         */
     3277        'tinymce'       => apply_filters( 'activate_tinymce_for_media_description', false ),
    32713278        'quicktags'     => $quicktags_settings,
    32723279    );
Note: See TracChangeset for help on using the changeset viewer.