legacy-knowledge-base
公開されました Jun. 30, 2025

テキストボックスが更新されると、サイトビルダー要素に下部のパディングが追加される

written-by

Justin Mann

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

問題

  • テキスト用のテキストボックスを含むサイト・ビルダー要素では、それらの要素が編集されると、ユーザーの選択なしに、自動的に下層のスペーシングが追加され、削除することはできません。

環境

  • DXP 7.4アップデート 108

解像度

  • この問題は、エディタがコンテンツを段落要素 <p>に埋め込んでいることに起因しています。
  • このパディングを除去する回避策は、以下のように実行できる:
    • 右サイドバーの詳細タブを開き、カスタムCSSに以下を追加して、特定のフラグメントのマージンを削除する:
    • .[$FRAGMENT_CLASS$] [data-lfr-editable-type="rich-text"] p {
      margin-bottom: 0;
      }
      サイト上のすべてのページにCSSを適用させたい場合は、次のようにする:
      1. サイト・ビルダーへ -> ページ
      2. 選択設定
      3. CSS入力タイプに以下を追加する:
      [data-lfr-editable-type="rich-text"] p {
      margin-bottom: 0;
      }

  • また、この問題の修正プログラムも作成することができました。 この問題を修正するには、LPS-202551およびLPD-1778を含むHotfixをリクエストしてください。
did-this-article-resolve-your-issue

legacy-knowledge-base