When creating or editing content in Drupal Gardens, you can choose between using a What-You-See-Is-What-You-Get editor (WYSIWYG) or entering text and markup directly yourself.
The safe HTML suits most content creation purposes, however, other text formats are available to you. Every text format has an associated permission on the Permissions tab at People > Permissions. To use a given text format, each user role must be given permission to use it. Note: The WYSIWYG editor is optimized to work with the Safe HTML text format.
Using the formatting options
The formatting toolbar is located at the top of the Body section, and contains standard options, such as bold, italics, links, etc.
- Spell check your content in multiple languages
- + Add media, such as images or videos using your site's media library and upload tool
You can toggle between rich-text and plain text editing modes by clicking the WYSIWYG and HTML tabs at the top right of the WYSIWYG editor.
Using preset formats
You can select a paragraph style from the format drop-down menu before you begin writing, or select some text and select a style to apply to it.
Tip: CSS selectors
The selectors associated with the text you are writing or have selected are shown at the bottom left of the text entry area.
Creating a New Text Format
Using the capabilities provided by the body's WYSIWYG or HTML tabs, content typically can be entered "as is" or manually coded using those respective tabs.
To format the text so it renders properly, a body field's default input formats (Safe HTML, Filtered HTML, Full HTML, Plain text) is typically pre-configured depending on the content type's settings or you can manually change it upon input. Should content not initially render correctly, assess whether the correct input format is selected. If you've exhausted those default formats and you're building dynamic web pages, you may need a new text format to display the content.
For example, if you use JavaScript or other "code snippets" on your site, you may need to create a new format to allow you to embed external services to create effects and usability enhancements. (PHP is not supported due to security implications.) Examples include Facebook "Like" widget, Twitter widgets, iFrames, retail badges, Google Adwords, and e-commerce widgets.
To create a new text format:
- Go to Configuration > Text Formats, and then click Add text format.
- Give it a name, such as "Raw HTML".
- Under Roles, check administrator or other highly-trusted roles you've defined.
- Leave all the enabled filters unchecked, as you want the script to output to the page exactly as it is entered.
- Click Save configuration.
Your new text format is now available throughout your site.
