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

カスタム エディター構成が繰り返し可能なフィールドに適用されない

written-by

Alfonso Crisci

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

問題

  • 以下のように、カスタム EditorConfigContributor を実装して、Web コンテンツ エディターの構成をオーバーライドした後:
    @Component(
    immediate = true,
    property = {
    "editor.name=alloyeditor",
    "javax.portlet.name=com_liferay_journal_web_portlet_JournalPortlet",
    "service.ranking:Integer=100"
    },
    service = EditorConfigContributor.class
    )
    開発者は、繰り返し可能な HTML フィールドを持つ構造化された Web コンテンツの構成がフィールドの祖先にのみ適用され、繰り返されるフィールドには適用されないことに気付くかもしれません。

Environment

  • Liferay DXP 7.0+

解決策

  • 繰り返される Web コンテンツ フィールドをターゲットにするには、 com_liferay_dynamic_data_mapping_web_portlet_DDMPortlet という名前も追加します。
    @Component(
    immediate = true,
    property = {
    "editor.name=alloyeditor",
    "javax.portlet.name=com_liferay_journal_web_portlet_JournalPortlet",
    "javax.portlet.name=com_liferay_dynamic_data_mapping_web_portlet_DDMPortlet",
    "service.ranking:Integer=100"
    },
    service = EditorConfigContributor.class
    )
    サンプルモジュールが添付されています

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base