legacy-knowledge-base
公開されました Sep. 10, 2025

CKeditorで "normal "をクリックしてもフォントファミリが変更されない。

written-by

Adam Kollar

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

問題

  • Microsoft Wordで私たちのフォント・ファミリーと異なるフォント・ファミリー(例:Times New Roman)のテキストを書き、このテキストを新しいウェブ・コンテンツのCKeditorにコピーすると、古いフォント・ファミリーの古い書式が表示されます。
  • 変更したい場合は、テキストをマークし、CKeditorのフォーマット(「ノーマル」フォーマット)をクリックする。
  • 選択されたテキストのフォント・ファミリーが変更されると思っていたのですが、選択されたテキストをstyle属性で囲むだけで、既存の "times new roman "スタイルで上書きされてしまいます。

Environment

  • DXP 7.4

解決策

  • デフォルトでは、スタイルボタンはテキストの元の書式を削除せず、希望の書式を追加するだけです。
  • フォントファミリーを削除するという望ましい結果を得るためには、カスタムエディター設定を作成し、Remove Formatプラグインを組み込む必要があります。

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base