Skip to content

Commit

Permalink
Updated legacy editor to place captions the same way as the web edito…
Browse files Browse the repository at this point in the history
…r and visual editor (before the [/caption] closing tag)
  • Loading branch information
aforcier authored and maxme committed Jul 8, 2016
1 parent 5d688bd commit e9d10d4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,8 @@ public String getImageHtmlForUrls(String fullSizeUrl, String resizedPictureURL,
fullSizeUrl, mediaTitle, alignmentCSS, resizedPictureURL);

if (!TextUtils.isEmpty(getCaption())) {
content = String.format("[caption id=\"\" align=\"%s\" width=\"%d\" caption=\"%s\"]%s[/caption]",
alignment, getWidth(), TextUtils.htmlEncode(getCaption()), content);
content = String.format("[caption id=\"\" align=\"%s\" width=\"%d\"]%s%s[/caption]",
alignment, getWidth(), content, TextUtils.htmlEncode(getCaption()));
}

return content;
Expand Down

0 comments on commit e9d10d4

Please sign in to comment.