WYSIWYG Text Editor
An acronym for "What You See Is What You Get", the WYSIWYG is the text editing tool used in GW Drupal. It uses much of the same functionality you'd see in a word processing program with some additional features that are specific to publishing website content.
Key Features
- Create links to documents and pages internal or external to your website
- A Source button so that tech-savvy users can access the HTML source code if needed
Text Size Examples
- Small
- Normal
- Large
Style Examples
- Marketing Text
- Source Serif
- Gazzetta
- Uppercase
Statement Styles
Statement styles allow content managers to use text for visual impact instead of - or in addition to - graphic design elements, for a more stylized display.
- Source Serif Statement
- Gazzetta Statement
- Gazzetta Statement Light
The WYSIWYG Templates were created to allow site owners and content managers to design more fluid page layouts than a single, double, or triple column style allows for.
In combination with strong graphics, the WYSIWYG tabs & accordions and additional font styles in the WYSIWYG Styles dropdown, inline WYSIWYG Templates are a great way to present your information in an eye-catching, easy to digest format.
Automated feeds or directories can be added to a page using the Advanced Insert View button (), located in the top row of the WYSIWYG toolbar. This button will allow you to select a feed or directory to add to your page. These feeds and directories can be filtered in a variety of ways.
Tabs
Step 1: Click the Tab rich text (WYSIWYG) editor button.
- The tab button can be found in the first row
- Give the tab set a title and select how many tabs you would like
- New tab sets will default to 4 tabs
Step 2: Adding your content
- Fill in the title for each tab and enter your content the section below the title
- The last tab you edit will be the tab displayed first once you save
Step 3: Adding and Removing sections
- To add or remove a tab section, double click on the title then used the “Number of Tabs” and “Remove a Tab” dropdowns to make changes
Accordions
Step 1: Click the Accordion rich text (WYSIWYG) editor button.
- The accordion button can be found in the first row
- New Accordions will default to two sections
Step 2: Adding your content
- Fill in the title for each accordion section and enter your content in the section below the title.
Step 3: Adding and Removing sections
- To add or remove a tab section, right-click on the accordion and select where to add a section or remove one.
Displaying Specific Tabs and Accordion Sections
You can use short snippets of code at the end of a GW Drupal page URL to display specific tabs or expand specific accordion sections. These URL commands have been created to load the page displaying whichever tabs or accordion sections you select. The feature works by identifying each tab or accordion in sequential order and including those in the URL command.
For example: this GW Brand graphic elements page with accordion sections does not expand any when the page loads by default. Users would need to click on those sections to expand them and view the content.
Expand Accordions Commands
- Original URL:
https://communications.gwu.edu/brand-guidelines/graphic-elements - URL with the expand all command added:
https://communications.gwu.edu/brand-guidelines/graphic-elements?expand=all - URL with the first and third accordion sections expanded:
https://communications.gwu.edu/brand-guidelines/graphic-elements?expand=1,3
Display Tab Commands
These kinds of commands can be used to display tabs in a similar way with a "?tab=" snippet.
- Example URL to this "Tabs and Accordions" tab (identified as tab 3):
https://drupaldemo.gwu.edu//wysiwyg-text-editor?tab=3
These commands can be used in combination with each other and other elements like Anchor links. This can be a great way to bring users to a specific place on a page that has interactive elements like accordions and tabs.
- Example URL with an anchor and a tab URL Command:
https://drupaldemo.gwu.edu//wysiwyg-text-editor?tab=3#url-commands- This example loads this page, bringing users to a specific spot on the page (anchor) of a specific tab displayed (URL command).