Legacy Knowledge Base
Published Jul. 2, 2025

Cannot Add Captions To Images in Alloy Editor

Written By

Dia Seung

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • AlloyEditor is the default blog WYSIWYG editor in DXP 7.3, and seems to be missing a feature to add captions to images.
  • This feature is available in CKEditor but the default editor for Blogs in DXP 7.3 is AlloyEditor instead of CKEditor.  

Environment

  • DXP 7.3

Resolution

  • DXP 7.3 dxp-2 and above ships with LPS-130028, which allows image captions for Blogs with the figure/figcaption HTML tags (in Code View).  The Figure Caption element can be used in the Blog post content section with Code View activated by using the following HTML format:
<figure>
<img src="{image_url}" alt="{alt_text}">
<figcaption>Lorem Ipsum</figcaption>
</figure>
  • Currently, there is no WYSIWYG way to add captions without utilizing Code View.
    • Feature Request LPS-157439 for a Frontend UI option for adding Image Captions was made to request this option for those unable to utilize Code View.
    • You can follow the request’s progress by opting in to watch the LPS, vote your support for the request to increase its visibility, or add additional feedback or concerns through the comments section. 

 

 

Did this article resolve your issue ?

Legacy Knowledge Base