Typo in Formatted Text Field Filter Tips Breaks Node Form

Created on 4 April 2024, 7 months ago

Problem/Motivation

I noticed that I could not open up the media library to change an image in edit screen of my node and that the type face in the lower half of the screen was the wrong typeface - it was using monospace. I looked in the inspector and saw many errors that looked like drupal.js wasn't loading. I noticed the script tag was wrapped in <code> tags. I then tracked down the line "You can embed media items (using the <drupal-media> tag)." and in the inspector there is a typo causing a <code> tag to never close and so it just replicates through the rest of the page and breaks functionality. The typo in the inspector is:

<li class="filter-tips__item filter-tips__item--short">You can resize media images by adding the <code>data-media-width</code> attribute on <code><drupal-media></drupal-media></code> tags, for example: <code><drupal-media data-media-width="50%" <="" code="">.</drupal-media></code></li>

(screenshot included)

Also noted that the Save button in the formatted text field settings screen is showing the monospace - leading me to believe the typo is affecting that form too.

Steps to reproduce

Add a Text (formatted) field to a content type. Allow full text format.

Proposed resolution

Currently you can temporarily fix the issue if you do not allow full text format.

Remaining tasks

Fix the typo - I am not sure where this is located to fix.

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Closed: outdated

Version

10.2

Component
Field 

Last updated about 14 hours ago

Created by

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

Comments & Activities

Production build 0.71.5 2024