HTML from modal caption field doesn't render properly

Created on 6 September 2019, about 5 years ago
Updated 4 September 2024, 3 months ago

Summary:
HTML tags in captions added via the modal caption field render with tags visible in the caption string. You must double-click and re-embed to get caption html to render properly.

Core: 8.7.7
Embed: 8.x-1.0
Entity Embed: 8.x-1.0+1-dev

Steps to recreate issue:

  • Add embed button for media with type image.
  • Add new media embed button to basic text format and enable filter for embedding entities.
  • Create a basic page and use the new media embed button to embed a media item of type image.
  • In the modal, type a caption with HTML.
  • In the wysiwyg, you will see the HTML tags in the caption string.
  • Saving the node, the tags still appear in the caption string.
  • Back on the node edit screen, if you double-click the embedded media entity and simply click "Embed" again, the HTML tags properly render.

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jonraedeke

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.

Production build 0.71.5 2024