The Editor
This section introduces the Drupal content editor, where you'll create and format the main content of your webpages. Each tool in the editor toolbar is explained in the sections that follow, along with recommended best practices for creating accessible, well-formatted content.
2. Working with the Editor
The body field contains the main content that appears on a webpage. The editor toolbar appears above the body field and includes tools for formatting text, adding headings, creating links, inserting tables, adding images, and editing HTML source.
The editor functions are shown below.
From left to right, the editor toolbar includes:
- Undo / Redo
- Remove Formatting
- Bold, Italics, Bullet List, Ordered List
- Headings
- Styles
- Horizontal Rule
- Anchors
- Links
- Special Characters
- Find / Replace
- Tables
- Add Image in Body Copy
- Upload Image
- View HTML Source
- Toggle Full Screen
2.1 Undo | Redo
Allows you to undo or redo any edit you make to the body copy block.
2.2 Remove Formatting
When you copy and paste content from another source (Google Docs, Microsoft Word, PDFs, or a website) the original formatting (fonts, colors, font sizes, spacing, and other styles) is often copied along with the text. This formatting may not match the design of the Swarthmore website.
The Remove Formatting tool strips away the imported formatting while preserving the text itself. To use it, highlight the text you want to clean up and click the Remove Formatting button in the editor toolbar.
Always use Remove Formatting after pasting content into Drupal. This helps ensure your content uses the site's standard styles and remains consistent with the rest of the website.
2.3 Bold, Italics, Bullet Lists, and Numbered Lists
The editor toolbar includes tools for applying bold and italic formatting, as well as creating bulleted and numbered lists.
Choosing the Right Type of List
Drupal supports two types of lists, each intended for a different purpose.
Numbered lists should be used when the order of the items matters, such as instructions or procedures.
Example:
- Heat the oven to 250°F.
- Season the steak.
- Cook in the oven until nearly done.
- Sear each side over high heat.
- Let the steak rest.
- Serve.
Bulleted lists should be used when the order of the items is not important, such as checklists or collections of related items.
Example:
- Charging cables
- Socks
- Shirts
- Toiletries
- Prescription medications
- Extra pair of glasses
Choose the list type based on its purpose. Use numbered lists for step-by-step instructions and bulleted lists for unordered collections of related items.
2.4 Headings
Headings organize your content into logical sections, making webpages easier to read and navigate. Drupal supports heading levels from H2 through H6 within the page editor.
The page title is automatically created as the page's H1 heading. When adding headings within the body content, always begin with an H2, then use H3, H4, and so on as needed.
Heading levels should always follow a logical hierarchy. Skipping heading levels (for example, jumping from H2 directly to H4) can make content more difficult to understand, particularly for visitors using screen readers.
A typical heading hierarchy looks like this:
H1 Page Title (added automatically)
H2 First Main Topic
H3 First Subtopic
H3 Second Subtopic
H3 Third Subtopic
H2 Second Main Topic
H3 First Subtopic
H4 Supporting Detail
H4 Supporting Detail
H3 Second Subtopic
H2 Third Main Topic
2.5 Styles
The Styles menu provides several predefined formatting options that have been approved for use on the Swarthmore website. These styles allow you to emphasize content while maintaining a consistent appearance across the site.
Common styles include:
- Lead paragraphs
- Pull quotes
- Other approved content styles
Whenever possible, use the predefined styles instead of manually changing font sizes, colors, or other formatting. This helps keep the website visually consistent and accessible.
2.6 Horizontal Rule
The Horizontal Rule tool inserts a visual divider between sections of content.
Horizontal rules should be used sparingly to separate major sections of a page. In most cases, headings provide a clearer and more accessible way to organize content.
Use headings, not horizontal rules, to organize page structure. Horizontal rules should only be used when a visual separation is helpful.
2.7 Anchors
Anchors are internal links that allow visitors to jump directly to a specific section of a webpage. They are commonly placed on headings so readers can quickly navigate long pages.
Anchor names should be unique, contain no spaces, and use a simple naming convention. Examples include:
CreatingAnchorsadmissionsRequirementsrequired-documents
When an anchor has been created successfully, a small red flag icon appears in the editor. This icon is only visible while editing and is never shown to website visitors. Selecting the flag displays the anchor's name and allows you to edit it if necessary.
2.7.1 Creating an Anchor
After creating an anchor, click the red flag icon to open the Anchor dialog.
2.7.2 Linking to an Anchor on the Same Page
To create a link to an anchor on the page you're currently editing:
- Highlight the text that should become the link.
- Select Edit Link.
- In the Link URL field, enter the anchor name preceded by a
#character.
For example, if the anchor name is Definitions, enter:
#Definitions
2.7.3 Linking to an Anchor on Another Page
You can also link directly to an anchor on another page by appending the anchor name to the end of the page's URL.
Examples:
/my-example-page#Definitions
or
/node/100057#Definitions
2.8 Links
Adding links to other webpages or other content is one of the most common tasks you'll perform when creating webpages. The most important thing to remember about a link is the text of that link. Make sure it is meaningful and lets visitors know what will happen when they select it. Visit Unlock the Power of Meaningful Links to learn more.
Here are some examples of effective and ineffective link text:
| Ineffective | Effective |
|---|---|
| WCAG-compliant links should explain their purpose from the link text alone. Click here to learn more. | WCAG-compliant links should explain their purpose from the link text alone. |
| Check your contrast levels using https://webaim.org/resources/ contrastchecker/ |
Check your contrast levels using WebAIM's Contrast Checker |
| Swarthmore's Accessibility website includes five tips for preparing accessible materials. | Swarthmore's Accessibility website includes five tips for preparing accessible materials. |
| Here is an introduction from WebAIM to links and hypertext. | WebAIM's introduction to links and hypertext |
| 10 minute conversation | How to have a 10 minute conversation [PDF] |
2.8.1 Linking to Another Webpage in Drupal
- Highlight the text you wish to become a link.
- Click the Link (chain) icon in the editor toolbar. This will open the Link Editor.
2.8.2 How the Link Editor Works
- Link URL — Enter the URL or destination for the link.
- Link to a Document — Opens the document browser so you can select or upload a document stored in Drupal.
- Advanced — Expands additional options, including CSS Classes, ID, and Open in a new window.
- Open in a new window — Controls whether the link opens in a new browser tab. By default, links open in the current tab.
- Save / Cancel — Click the checkmark to save your changes or the X to cancel.
2.8.3 Creating a Link to Another Page in Drupal
- Start typing the name of the webpage you wish to link to. For example, if you wanted to link to the Admissions & Aid homepage, you would type Admissions. Drupal will display pages whose titles match your search.
- Select the webpage you wish to link to.
- After selecting the page, the Link Editor will return to its minimized view. In place of the page title, you'll see a reference similar to
/node/######. This is normal and is how Drupal keeps track of internal links. - Click the checkmark to save your changes or the X to cancel.
2.8.4 Creating a Link Using a URL
- You can also copy and paste any URL directly into the Link URL field. This includes external websites, internal URLs, Google Drive links, and other valid web addresses.
2.8.5 Linking to a Document
- Highlight the text you wish to become a link. Always include the file type in the link text so visitors know they are opening a document (for example,
[PDF]).
- Click the Link to a Document button to upload a new document or select one that has already been uploaded to Drupal.
- It is recommended that PDFs (and other documents) open in a new browser tab. This setting is available under the Advanced options.
- Enable Open in a new window if appropriate.
How the "Link to Document" Dialog Works
Clicking the Link to a Document button opens a window where you can upload a new document or select one that has already been uploaded to Drupal.
- Select Document — Displays documents that have already been uploaded.
- Upload Document — Uploads a new document.
- Filename — Searches the document library by filename.
- Name — Sorts documents alphabetically.
- Created — Sorts documents by upload date.
- Radio Button — Selects the document you wish to link to.
- Select Document — Saves your selection and returns you to the Link Editor.
Once the Document Is Selected
- The name of the selected document will appear in the Link URL field.
- Click the green checkmark to create the link.
2.8.6 Edit or Remove a Link
- Click an existing link to open the Link Editor.
- Select the pencil icon to edit the link.
- Select the broken chain icon to remove the link while leaving the text in place.
2.9 Special Characters
The Special Characters tool allows you to insert characters that are not available on a standard keyboard, such as accented letters, mathematical symbols, currency symbols, and punctuation marks. This is most commonly used when entering foreign words, names, or other specialized characters.
2.10 Find & Replace
Allows you to do a standard find and replace in the body content block.
2.11 Tables
Use the Table tool to add tabular data to a webpage. Tables should be used to present data that naturally belongs in rows and columns, such as schedules, pricing information, or comparison charts. Avoid using tables to control the layout or appearance of a webpage.
- Select the desired number of rows and columns using the table matrix. Remember to include a row or column for table headings. See WebAIM's article on accessible tables to learn more.
- Add your row and/or column headings.
- Enter your table data.
Every table should include a caption and appropriate row or column headings. These elements help all visitors understand the purpose of the table and are especially important for people using assistive technologies.
Tables should be used to present data—not to control page layout. To learn more, see WebAIM's article on accessible tables.
2.12 Add Image
Visit 6.2) Adding an Image in the Body Copy to learn more about adding an image to the body copy
2.13 Upload Image
Allows you upload images directly to Drupal.
2.14 HTML Source
Clicking the HTML Source button will display the underlying HTML responsible for rendering the text formatting, links, images, and other elements that appear on the page. Editors who are comfortable working with HTML may find this functionality useful for troubleshooting, however it is not necessary for the general editing of content.
2.15 Full Screen
The Full Screen button will maximize the Copy Editor to take up the full browser window. This can be useful when working with a large amount of content or as a means of cutting down on distraction during the writing process.
Click the button a second time in order to minimize the Copy Editor, returning it to its original size.


















