To be able to embed content from more models, enable them from the Rich Text field settings in the schema editor. Only the content from the selected models in the Rich Text field configuration is available to be embedded. RTE - Embeds - Block embed screen example 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. Use block embeds to insert assets and other models inside the text as a block. 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.īlock embeds give Content Creators more flexibility with less clutter. Inline embeds give Content Creators maximum flexibility to add references or relations directly within the text so they can move faster. Use this option to create inline and/or block embeds. This process follows the standard asset upload flow. 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 will automatically add the asset to your content. Select an asset by clicking on the purple reference icon located at the beginning of each asset entry. ID attribute: This attribute is used to specify a unique id for an HTML element.Ĭlicking on the Assets button opens the Select Asset screen:.You can add classes separated with spaces here. Class attribute: This attribute specifies one or more classnames for an element. Rel attribute: This attribute defines the relationship between the current document and the linked resource.You can optionally complete the following HTML attributes: Insert: Click on this button to save the link and add it to your content entry.Cancel: Click on this button to cancel the process.This field only displays for the Entry link type. Only models that can be embedded will display in the dropdown. Select entry: Click on Add existing entry to select the entry in your Hygraph project that you wish to create a link to.This field only displays for the URL link type. Link title: Optional field where you can enter a tooltip to display on hover.It adds the target='_blank' attribute to your link. Open link in new tab: Use this checkbox for your link to open in a new tab.Link address: Mandatory field where you can type the URL you wish to link to.If you selected text before clicking on the link button, this field will be autopopulated with the selected text. This field becomes mandatory for the Entry link type. If you are creating a URL link type and don't complete this field, the Link address will be used as Link text. Link text: You can add text for your link in this field.Entry: Select this option to add a link to an entry in your Hygraph project.URL: Select this option to add a link to an external source. Your selection modifies the fields displayed on screen. Link type: Use the radio buttons to select one of the two options.Use this option to enter the fullscreen rich text editor mode.Ĭlick on the Link button to display the Insert link popup, which contains two tabs: Settings and Attributes.This option allows you to embed content from a model.A popup will display for you to type in the Class name, then click on Ok to finalize the process. Simply highlight the text and click on the Class button. Use this option to assign classes to your text.After you've entered a valid iframe URL, click on the OK button to add it to your content. Click on the Iframe button to display a popup where you can enter an iframe URL.Use this option to format the text as a code block.Use these options to create either a bulleted or numbered list.This option allows you to include an asset.Use this option to format the text as inline code.Use this option to format the text as a block quote.These typography options allow you to make text bold, italic, or underlined.You can format it as normal text as well as different heading levels. This dropdown allows you to format text you've highlighted in the text area.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: 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |