Zum Hauptinhalt springen
Version: 6.18

Support for custom fonts for rich text editor streamlined (#667343)

It is now possible to manage available fonts for the comment and email editor of the Web Client and the template editor of the Web Admin Suite in one central place. The fonts can be uploaded to the path design/fonts of the data directory and referenced in the fonts.css file located in the same directory.

Example:

  1. Go to design/fonts on the Data directory page of the Web Admin Suite.
  2. Upload Aptos.ttf.
  3. Create fonts.css with the following content:
    @font-face {
    font-family: 'Aptos';
    src: url(Aptos.ttf);
    }
Themes

If a theme is configured, the Web Client only considers the fonts defined inside the theme, e.g. in design/<my_theme>/fonts.css.

In addition, the Rich text templates page of the Web Admin Suite has been improved to make font settings more transparent. The Global editor configuration button has been added to the Content tab for this purpose. It contains the following settings:

  • Global rich text font: Page customization setting globalRichTextFont in cmApplicationCustomization. Defines the default font for all rich text editors in the Web Client and Web Admin Suite, i.e. the email and comment editor, the editor for rich text fields and the template editor.
  • Global rich text font size: Page customization setting globalRichTextFontSize in cmApplicationCustomization. Defines the default font size for all rich text editors in the Web Client and Web Admin Suite, i.e. the email and comment editor, the editor for rich text fields and the template editor.
  • Configuration: Page customization setting configuration in CmRichTextEditorCustomization.Defines the configuration for the rich-text editor (froala) for all templates as a JSON object. You need to put properties in brackets, e.g. {"height":"1000px"}.
Best practice

Please see Usability Web Client for best practices regarding font size and font family handling in rich text editors.