Allow plain text as formatter

Created on 2 October 2021, over 2 years ago
Updated 8 March 2023, over 1 year ago

Problem/Motivation

I'm not sure if this is a bug or my expectations/implementation are wrong.

I'm trying to reference documents/brochures etc held remotely and I thought this module would do that.

Created a Remote Document media type and selected Plain text format which is one of the listed formatters - but fails validation on create with error saying I haven't selected a formatter.... but Plain text is listed as a formatter?

Steps to reproduce

Manage display -> Default -> Field -> Remote media URL - > Format - Plain text

Then try to save an item - "The website encountered an unexpected error. Please try again later." error message in log

LogicException: The Remote Media validator needs the _default_ media display to be configured, and for the source field to use any of the formatters provided by the Media Remote module. in Drupal\media_remote\Plugin\media\Source\MediaRemoteSource->getFormatterClass() (line 84 of E:\example.com\www\modules\contrib\media_remote\src\Plugin\media\Source\MediaRemoteSource.php).

πŸ› Bug report
Status

Needs review

Version

1.1

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom csc4

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.

  • πŸ‡¨πŸ‡΄Colombia jidrone

    I just realized that this should be on Needs Review.

    I needed to use the plain text formatter in a project, so I think at least it should not throw an error.

Production build 0.69.0 2024