Problem/Motivation
Custom remote-video captions and descriptions are limited to 128 characters by Drupal's textfield default. This is too short for captions combining several tokens.
Steps to reproduce
- Open the GLightbox Media Remote Video formatter settings on a media type's Manage display page.
- Select Custom (with tokens) for Caption or Caption description.
- Try to enter text or a token pattern longer than 128 characters.
Proposed resolution
Use textareas for both settings, allowing longer captions and token patterns. Stored values remain strings.
The equivalent proposal for the main Glightbox module is #3628610.
Local testing
With the locally prepared change, browser checks on Drupal 11.4.8 confirm both inputs retain 740 characters in display and Views-style forms.
Remaining tasks
Review the MR (verify saving, reopening and rendering longer captions and descriptions) then merge MR.
Issue fork glightbox_media_video-3628605
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
nick hope commentedComment #4
nick hope commentedComment #5
levmyshkinI need to check it for images inside Media, Media inside Paragraph, Paragraph in inside Paragraph and other variations.
Comment #7
levmyshkinComment #9
levmyshkin