#Connect your Hygraph project to TinyMCE
TinyMCE is an open-source online rich-text editor. It converts HTML textarea fields, or other designated HTML elements, into editor instances.
#What you can do with the Hygraph-TinyMCE integration
With this app you can quickly generate HTML, creating and editing content in a format similar to using a word processor.
#Prerequisites to use this integration
- You must have a Hygraph account. If you don't have one, you can create one here.
- You must have a Hygraph project with at least one model.
Apps are environment specific. This means their configuration is applied per environment. Take this into consideration if you're working with a project using more than one environment.
#Install the TinyMCE app
Click here to install the TinyMCE App on Hygraph, then follow these steps:
- Use the dropdowns to select which project and environment you want to install the app in, then click on
Install app
. - Click on
Authorize app
to authorize app permissions and move on to the configuration screen. - Customize your toolbar options by selecting the checkboxes you want regarding formatting, alignment, indentation, history, styles, elements, headings, formats and miscellanea. You can come back and edit this selection later if you need to.
- Click
Save Config Settings
.
#Add the TinyMCE field to your model
- Navigate to the Schema builder.
- Select the model where you want to add the TinyMCE field.
- Select the TinyMCE field from the Add fields right sidebar.
- Complete the
Display name
field, and theAPI ID
will be auto-filled by the system. Optionally, you can also add aDescription
. - This screen also allows you to control different properties of your TinyMCE field: you can allow multiple values, or you can localize the field, by selecting the checkboxes under the
Field options
section of the screen. - Click
Add
to save.
#Use TinyMCE in your Hygraph project
- Navigate to the Content editor.
- Select the view that you configured the TinyMCE field for.
- Click
+ Add entry
or, alternatively, edit an existing entry by clicking on it. - Locate the TinyMCE field section of the screen and you can start writing content in it right away. If any of the options you need are not visible, simply go back to the App Configuration screen and use the checkboxes to select it.
- Once you finish working on your content entry, click
Save
orSave & Publish
depending on your workflow.