cs-icon.svg

Fonts App Installation Guide

To enhance the user experience, Contentstack offers JSON RTE Plugins to extend the functionality of the JSON Rich Text Editor, catering to unique business needs while maintaining a native Contentstack look and feel.

With the Fonts app, you can easily modify the font style, size, and color in your JSON Rich Text Editor. These enhancements make your content more visually appealing and improve readability and presentation.

By installing the Fonts app from the Contentstack Marketplace, you can enhance the content manager's experience.

Prerequisites

Let's follow this step-by-step guide to install and configure the Fonts app within your stack.

Steps for Execution

  1. Install and Configure the Fonts app in Marketplace
  2. Use the Fonts app within your Entry
  1. Install and Configure the Fonts App in Marketplace

    To install the app, log in to your Contentstack account and follow the steps below:

    1. From the left-hand side primary navigation, click the Marketplace icon.1-Marketplace-Icon
    2. Click Apps from the left panel.
    3. Within the Marketplace, you can see all the available apps. Hover over the Fonts app and click Install.2-Fonts-App
    4. In the pop-up window, select the stack where you want to install the app, accept the Terms of Service, and click the Install button.3-Fonts-App-Install
    5. On the Configuration tab, enter a Name and URL to install the Fonts app. Click the + Add button.4-Fonts-Configuration

      Note: Name denotes the name of the Font Family and URL denotes the source URL from where you want to fetch the fonts. You can search the public URLs available and use them in your JSON RTE content.

      For example, you can check the Browse Fonts - Google Fonts documentation.

    6. On the UI Locations tab, you can see the predefined app location. If you disable the UI location, you will not be able to save the configuration as it requires at least one UI location.5-Fonts-UI-Locations

      Additional Resource: For more information on UI locations, please refer to the Installed Apps guide.

    7. Click Open Stack to start using the Fonts application.
  2. Use the Fonts App within your Entry

    To use the Fonts app within an entry of your stack, follow the steps given below:

    1. Go to your stack, click the Content Models icon from the left navigation panel, and click the + New Content Type button.
    2. Create a content type by adding relevant details as displayed below:6-Fonts-Content-Type
    3. In the Content Type Builder page, add a JSON Rich Text Editor field in your content type by clicking the Insert a field link represented by a + sign.
    4. On the JSON Rich Text Editor Properties modal, enter the following:
      1. Enter a Display Name for the field, for example, Fonts.
      2. (Optional) Enter an Instruction Value and Help Text for the field.
      3. Click inside the Select JSON RTE Plugin(s) field, select Fonts from the list of plugins, and then click Add Plugin(s).7-Fonts-Add-Plugin

        This adds Fonts in the JSON Rich Text Editor.

        8-Fonts-Added-Plugin
    5. After adding the app in a JSON Rich Text Editor field, click Save or Save and Close to save your changes.
    6. To use the Fonts app, create an entry for this content type. In the left navigation panel, navigate to the Entries page, click + New Entry.
    7. You can see new icons added in the JSON RTE editor as shown below:9-Fonts-JSONRTE-Options
    8. Add the content in the JSON RTE field. Select the word or the content where you want to apply any specific Font Family, Color, or Size.

      You can see the Fonts in the JSON Rich Text Editor field on your entry page, as shown below:

      10-Fonts-JSONRTE-In-Entry
    9. You can then proceed to Save and Publish your entry.
Was this article helpful?
^