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

CKEditor は、テキストを同じ段落の新しい行に自動的に折り返さない

written-by

Balázs Létai

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

問題

  • 入力時に 'Enter' を押すと、CKEditor は新しい行を同じ段落で自動的に折り返しません。
  • エディターは、代わりに <br /> タグで新しい行を生成します。

Screenshot_2022-11-16_at_16.01.44.png

Environment

  • Liferay DXP 7.3 アップデート 5+

解決策

  • これを解決し、編集中のテキストを <p> タグで囲むには、テキストのスタイルを「標準」に設定する必要があります。 段落に含めたいテキストを選択し、スタイルを「標準」に設定すると、ソース モードで <p> タグが追加されていることがわかります。
  • または、段落に入れたいテキストを入力する前に「標準」スタイルを選択することもできます。
  • 以前のバージョンの Liferay では、ロジックの動作が異なり、特に指定しない限り、テキストは自動的に段落 (スタイル 'Normal') に設定されていました。

Screenshot_2022-11-16_at_16.01.21.png

did-this-article-resolve-your-issue

legacy-knowledge-base