wordpress-mobile / wordpress-mobile/AztecEditor-iOS

Captions do not display for Images inserted from Media Library

Open
#1,259 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Type] Bug
Dominant language
Swift
Stars
669
Forks
153
Avg merge
11h 27m
Merged PRs (30d)
4

Description

Expected behavior

When you insert Images from the Media Library, and set a caption for them, the caption should show up in the Post when Previewed and Published.

Actual behavior

The captions do not show up in the post when Previewed and Published.

The caption for the Image inserted from the Media Library shows up in the Editor:

Screen Shot 2019-12-09 at 9 33 56 AM

But not in the Preview:

Screen Shot 2019-12-09 at 9 35 20 AM

Or in the Published Post:

Screen Shot 2019-12-09 at 9 40 28 AM
Steps to reproduce the behavior
  1. Switch to Media LIbrary and upload a few Images
  2. Create a new Post
  3. In this post, insert images from the Media Library to the post and add caption. Observe that the caption shows up in the Editor.
  4. Hit Preview, then Publish. Notice that the caption does not display in Preview or Published Post.

Tested on iPhone XR / iOS 13.2.3 / WordPress for iOS 13.7 / NOT using block editor

First tested by @melindahelt, and reported by a user in 2370166-zen and 2532609-zen.

Originally reported it on the WordPress iOS GitHub repo - https://github.com/wordpress-mobile/WordPress-iOS/issues/13058 - but was asked to cross-post it here because it's an Aztec Editor issue.

cc @designsimply @yaelirub

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in AztecEditor-iOS with an image from the Media Library, comparing the editor output with Preview and the published post. Trace where the caption is lost between insertion and rendered HTML, then add coverage for the reported workflow; done means captions appear in both Preview and published output.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.