Status: BetaWordPress plugin

Ally Editor

An accessible WordPress editor you can embed in website builders. Paste lists from Google Docs or Word and keep their structure.
On this page

What does Ally Editor do with a pasted list?

It rebuilds the list so nested items are really nested. Many basic text editors flatten the levels that Google Docs and Word put on the clipboard, and a flat list reads as separate lists to a screen reader.

A nested list pasted from Google Docs

✕ In a basic text editor
				
					<ul>
  <li>Fruit</li>
</ul>
<ul>
  <li>Apple</li>
  <li>Pear</li>
</ul>
<ul>
  <li>Vegetables</li>
</ul>
				
			
✓ Right
				
					<ul>
  <li>Fruit
    <ul>
      <li>Apple</li>
      <li>Pear</li>
    </ul>
  </li>
  <li>Vegetables</li>
</ul>
				
			

Where is Ally Editor used?

It is for sites built on a website builder whose own text editor is too basic for clients to write accessible content.
  • You host the page in WordPress, where Ally Editor gives the client a proper editor with list controls.
  • You embed that page in the client’s site, in the builder, with the embed code the plugin generates.
  • The client keeps editing in one place, and the embedded page updates.
The builder and its theme are not changed. Only the embedded text is managed in WordPress.

Which WCAG criteria does Ally Editor support?

Ally Editor is built to support WCAG 2.1 AA for the list structure and formatting it produces. What authors write, such as headings, link text and plain language, still needs its own checks.
WCAG success criteria: plugin coverage and author checks
CriterionHow the plugin handles itWhat you still verify
1.3.1 Info and RelationshipsLevel APasted bullet, numbered and lettered lists become real <ul> and <ol> lists, with nested levels inside the parent <li>.Heading order and the structure of anything that is not a list, such as tables.
2.4.6 Headings and LabelsLevel AAThe Format menu offers real heading levels, so authors do not fake headings with large bold text.That headings describe their section and follow a logical order.
2.4.4 Link Purpose (In Context)Level ALinks are kept as real <a> elements when pasted, and the link and unlink buttons are in the toolbar.That every link’s text makes sense on its own or in its sentence.
2.1.1 KeyboardLevel AThe toolbar and list controls are buttons in the WordPress editor.Keyboard results are not published yet. Test the editor with your own users and setup.

What can authors do in the editor?

Authors get one page and a short toolbar, not a full page builder. Lists get the most attention.
Editor controls
ControlWhat it does
Bulleted listA standard <ul>. Indent and outdent move an item to another nesting level.
Numbered listA standard <ol>. Inside a lettered list it switches the markers back to numbers.
Alphabetical listA real <ol> with lettered markers (a, b, c), for outlines and legal text.
Restore numbersReturns a lettered list to numbers without rebuilding it.
Indent and outdentNest an item under the one above, or move it back up a level.
Line spacingSets the line height of the selected text.
FormatParagraph and heading levels.
Font size, bold, italic, underline, color, alignmentStandard text formatting. List markers follow the formatting of the item text.
Link and unlinkAdd and remove links.
Page fonts are set by an administrator. Assigned users write in the page font and have no font control.

What markup does Ally Editor produce?

The editor writes plain HTML into the WordPress page that hosts the content. These are the elements and classes it relies on.
Markup produced by Ally Editor
ElementMarkupWhy
Nested lists<ul><li><ul><ol><li><ol>Each level sits inside its parent item, so assistive technology announces the depth.
Lettered lists<ol style="list-style-type: lower-alpha">Still an ordered list, only the marker changes.
Bold and italic<strong><em>Semantic emphasis is kept instead of <b> and <i>.
SpacesPlain spacesNon-breaking spaces from Word and Docs are converted, so words wrap and read normally.
Published pageadaally-editor-pageadaally-editor-contentClass names added to the page and its content wrapper so you can style it from your own CSS.
Embedadaally-editor-embedClass on the iframe when you embed an edited page in another site.

How do you set it up?

The page is hosted in WordPress and shown in the other site through an embed. An administrator picks the page and the author, and the author edits only the pages assigned to them.

For administrators

  1. Install and activate the plugin on the WordPress site that will host the pages (see Installation).
  2. Open the plugin’s page in the WordPress admin menu.
  3. Under Add assignment, choose a page and a user, then select Add assignment.
  4. Choose Edit page fonts to set the page font to match the client’s site, and copy the embed code.
  5. Paste the embed code into an HTML or embed element on the client’s site, in the website builder.

For authors

  1. Sign in and open the plugin’s page. Your assigned pages are listed under Your pages.
  2. Choose Edit content, write or paste into the editor, and save.
  3. Lists pasted from Google Docs or Word are rebuilt as you paste.
  4. The embedded page on the client’s site shows the saved text.

What goes wrong when you paste lists into a website builder’s text editor?

Basic text editors often lose a list’s nesting, or turn it into ordinary paragraphs with a typed bullet. That comes from the editor, not from WordPress. Ally Editor corrects the structure as you paste.

Nested lists that flatten on paste

✕ Wrong
				
					<ul>
  <li>Fruit</li>
</ul>
<ul>
  <li>Apple</li>
</ul>
				
			
✓ Right
				
					<ul>
  <li>Fruit
    <ul>
      <li>Apple</li>
    </ul>
  </li>
</ul>
				
			

Word lists that are only paragraphs

✕ Wrong
				
					<p class="MsoListParagraph">·&nbsp;First item</p>
<p class="MsoListParagraph">·&nbsp;Second item</p>
				
			
✓ Right
				
					<ul>
  <li>First item</li>
  <li>Second item</li>
</ul>
				
			

Non-breaking spaces used as layout

✕ Wrong
				
					<p>Step&nbsp;&nbsp;&nbsp;&nbsp;one</p>
				
			
✓ Right
				
					<p>Step one</p>
				
			
Seeing these on your own site?
Most of them show up within minutes of a keyboard and screen reader pass. Here’s the checklist our team follows when we review a page.

Limitations and author responsibilities

  • Headings, link text, images and wording are the author’s responsibility. WCAG conformance applies to whole pages, not to a single tool.
  • List rebuilding works for pastes from Google Docs and Microsoft Word. Other sources, and pastes that contain tables, use the editor’s default paste.
  • Authors can only edit pages an administrator has assigned to them.
  • The page appears in an iframe on the host site. Give the iframe a descriptive title, and check the host page for headings, contrast and focus order yourself.
  • Only administrators can set the page font.
  • Screen reader and keyboard test results are not published yet.
  • This plugin is built to support WCAG 2.1 AA. Conformance depends on your full page and content.

Installation

Install the plugin on the WordPress site that hosts the pages. Download it from GitHub, then upload it in WordPress or install it with WP-CLI.

WordPress admin

  1. Download the latest zip from GitHub.
  2. Go to Plugins, then Add New, then Upload Plugin.
  3. Choose the zip, install it, and select Activate.

WP-CLI

				
					wp plugin install ally-editor-plugin.zip --activate
				
			

Package details

Version
1.0.0
License
GPL-2.0-or-later
Platform
WordPress host, embeds in any site
Dependencies
None
Last reviewed