A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://graphcms.com/docs/developer-guides/content/rich-text-editor below:

Learn more about Hygraph's Rich Text editor

#Overview

This content editor tool comes out-of-the-box for all Hygraph projects, and provides great flexibility when it comes to creating, editing, and manipulating content entries showcasing text and images.

If your project schema is configured so that your model has a Rich Text field, you'll see it like this in the content editor:

Rich Text editor

  1. This dropdown allows you to format text you've highlighted in the text area. You can format it as normal text as well as different heading levels.
  2. These typography options allow you to make text bold, italic, or underlined.
  3. Use this option to add a link. Click here for more information.
  4. Use this option to format the text as a block quote.
  5. Use this option to format the text as inline code.
  6. This option allows you to include an asset. Click here for more information.
  7. Use these options to create either a bulleted or numbered list.
  8. Use this option to format the text as a code block.
  9. Click on the Iframe button to display a popup where you can enter an iframe URL. After you've entered a valid iframe URL, click on the OK button to add it to your content.
  10. Use this option to assign classes to your text. Simply highlight the text and click on the Class button. A popup will display for you to type in the Class name, then click on Ok to finalize the process.
  11. Use this option to add a table.
  12. Use this option to format text as subscript.
  13. Use this option to format text as superscript.
  14. Use this option to enter the fullscreen rich text editor mode.
  15. This option allows you to embed content from a model. Click here for more information.
#Field configuration

Rich Text editor configuration

When you add a Rich Text field to a model in your schema, you will find the following options:

Tab Field Name Description Settings Display Name Display name of your rich text field. Settings API ID API ID of your Rich Text field. This field is autocompleted as you type in the display name, but can be edited. Settings Description Optional field. You can add a description for your Rich Text field here. Settings Enable embedding Select this checkbox to enable embedding, which will allow you to reference content inside rich text. You cannot edit this setting after the initial save. Settings Allow multiple values Select this checkbox to store a list of values instead of a single one. Settings Localize field Select this checkbox to make the Rich Text field localized. Settings Formatting options Use this dropdown menu to customize which buttons will appear in your rich text editor. You can read more about this menu here. Validations Make field required Select this checkbox to make the rich text field required. If you select it, you won't be able to save the entry if the field is empty. This option cannot be edited after the initial save. Validations Set field as unique Select this checkbox to set this field as unique. Selecting it ensures that multiple entries can't have the same value for this field. Advanced Set initial value Select this checkbox to set an initial value to prefill the form input. Advanced Show based on condition Select this checkbox to set condition visibility for this field. Check out our conditional fields document to learn more. Advanced Field visibility Use this dropdown to select a field visibility option. The options are: read/write, read only, hidden, and API only. #Customize your editor

When you configure your Rich Text field, you will find the Formatting options under Settings.

Rich Text editor configuration

This dropdown menu lets you select which buttons will display on your rich text field in the Content editor.

Rich Text editor configuration

By default, all checkboxes are selected. Deselect the buttons that you don't want in your rich text editor.

Pro Tip

You can change your formatting options after the initial save.

To do this, simply edit your Rich Text field and select/deselect the checkboxes according to your needs.

#Using the Rich Text editor #Links

Click on the Link button to display the Insert link popup, which contains two tabs: Settings and Attributes.

#Settings

RTE - Insert link - Settings tab

#Attributes

You can optionally complete the following HTML attributes:

RTE - Insert link - Attributes tab

#Assets

Clicking on the Assets button opens the Select Asset screen:

RTE - Select assets

Select an asset by clicking on the purple reference icon located at the beginning of each asset entry. This will automatically add the asset to your content.

If the asset you need has not yet been uploaded to your project, you can do so from here by click on the Upload button. This process follows the standard asset upload flow.

#Embeds

Use this option to create inline and/or block embeds.

Inline embeds give Content Creators maximum flexibility to add references or relations directly within the text so they can move faster. This also clears up clutter around content creation, so they are able to add things like authors, citations, product attributes and more without having to add extra fields within the content entry.

Block embeds give Content Creators more flexibility with less clutter. Use block embeds to insert assets and other models inside the text as a block. This can be useful when adding images like logos, or referencing audiences to previous created material that support the new content item like blog posts, documents, announcements, etc.

RTE - Embeds - Block embed screen example

Only the content from the selected models in the Rich Text field configuration is available to be embedded. To be able to embed content from more models, enable them from the Rich Text field settings in the schema builder.

Whether you add an inline or a block embed, both screens show the same options: Use the dropdown to select the model you wish to embed content from, then click on Select model.

The system will display the selection screen for the chosen model. To select an entry and add it to your content, simply click on the purple reference icon located at the beginning of each content entry.

To Edit or Remove an embed you've added to your Rich Text editor, click on the context menu icon of your embed and select the desired option.

#Resources

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4