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

リッチ テキスト編集可能フィールドのページ フラグメントの問題

written-by

Ankit Gupta

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

問題

  • 再現する手順:

    1) 修正パック dxp-16 を含む Liferay 7.1SP2 を使用します。
    2) 「Demo」という名前のページ フラグメントを作成します。
    3) HTML セクションに以下のコードを追加します。

    <div class="fragment_33918">
      <lfr-editable id="unique-id" type="rich-text">
       <h1>This is editable text!</h1>    
    </lfr-editable>
    </div>
    

    3) フラグメントを公開します。
    4) "home" という名前の新しいコンテンツ ページを作成します。
    5) ページに「デモ」を追加します。
    6) ページ上のテキストを編集してみます。

    観測された動作: 最初はテキストを編集できましたが、その後、黒いセクションが表示されました。
    予想される動作: 2 回目も黒いセクションは表示されません。

Environment

  • Liferay DXP 7.1

解決策

did-this-article-resolve-your-issue

legacy-knowledge-base