legacy-knowledge-base
公開されました Jul. 2, 2025

フラグメントで編集可能な背景画像タグを使用すると画像アイコンが壊れる

written-by

Marco Abamonga

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

learn-legacy-article-disclaimer-text

問題

  • フラグメントで以下を使用して、ドキュメントに従って編集可能なイメージ タグを背景イメージとして含めると、フラグメントの左上に壊れたイメージ アイコンが表示されます。

    <lfr-editable id="unique-id" type="image">
    <img src="...">
    </lfr-editable>

Environment

  • Liferay DXP 7.2

解決策

  • 1 ピクセルの空白の画像など、非常に小さい画像を使用し、そのパスを <img src="...">ではなく img src で指定します。

did-this-article-resolve-your-issue

legacy-knowledge-base