wordpress-mobile / wordpress-mobile/AztecEditor-iOS

Caption style being removed when post edited in iOS App

Open
#1,123 1 comment 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 a new post is created and an image is added with a caption, going back to edit the post later would not change the style of the caption text to match paragraph style.

Actual behavior

If you don't add any text bellow the caption when you first create the post, the caption style remains. However, if you have not added any text after the caption and then go back to edit the post, the caption style changes to match the paragraph font.

Steps to reproduce the behavior
img_0861 img_0857
  1. Create a new post and add an image to it.
  2. Edit the image and add a caption.
  3. Don't add any extra text bellow the image and publish.
  4. Edit the post and add additional text at the bottom of the post after the caption.
  5. Publish the post (style will change).
Tested on iPhone X, iOS 12.1.2, Aztec 11.4.1

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 the AztecEditor-iOS app using the listed steps on an iOS device, then trace how an image caption is preserved when a post is edited and republished. Done means the caption retains its distinct style after text is added below it, with a regression test covering this sequence.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, swift
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.