Forums

Improved image captioning

  1. The captioning in the IOS app isn't very useful, and it creates invalid html.

    Both the classic editor and Gutenberg play nicely with the media library; they draw captions from the image meta and if you edit a caption, they update the image meta. In the IOS app there is no connection to the image caption meta. The IOS app simply tries to add a text string into the post.

    The classic editor does captions with a shortcode. Gutenberg uses HTML5 elements. The IOS app tries to use HTML5 but does it wrong.

    Gutenberg:

    <!-- wp:image {"id":18} -->
    <figure class="wp-block-image"><img src="https://example.com/wp-content/uploads/2018/12/image.jpg" alt="" class="wp-image-18"/><figcaption>Fire on Broadway</figcaption></figure>
    <!-- /wp:image -->

    IOS app:

    <img src="https://example.com/wp-content/uploads/2018/12/image.jpg" class="size-full">
    <figure><figcaption>Fire on Broadway</figcaption></figure>

    Note that the IOS app didn't wrap the image together with the caption in <figure> tags, it only wraps the caption. That leaves an empty figure with a caption that isn't associated with any image.

    If you want a caption in the IOS app, it is more effective just to add it manually as some text below the image.

    I'd like captions at least with correct html and, even better, linked to the image metadata.

Leave a Reply

You must log in to post.


About this Topic

Tags