As editors we often copy content from an exterior source and past it into the WYSIWYG editor. This can cause problems for accessibility, as styles or formats from the previous application will sometimes be carried over. This can overwrite or conflict with the format intended for the website.
For example, Microsoft Word has styling built-in so that your document looks nice. This is copied when you copy text from Word – so when you paste normally, it will paste those styles too. It is important to note that you may not be able to see these styles on the webpage, however, they may still be in the code. This can cause issues when using the accessibility toolbar. For example, here are some screen shots from a page where the colour contrast tools on the accessibility toolbar are being used. The first image shows how it looks when the formatting from word is carried over. The second image is how it should look, where the user has pasted as "plain text".
Plain text
To ensure best accessibility practice, as well as best compatibility with the website, anything that we paste needs to be "plain text". We can then take this plain text and format it using the WYSIWYG editor – applying headings, lists, links and more where required. We can then follow the accessibility best practices in this guide, and the website editor will ensure that it all remains styled as the design intends – improving aesthetic at the same time as accessibility compliance.
Two ways to get plain text:
- When initially pasting into the editor, instead of pressing CTRL+V as we usually would to paste, instead use 'CTRL+SHIFT+V' – this command pastes specifically as plain text, so everything will appear as simple text in the editor, ready for you to format.
- You can also paste in as usual, but highlight everything that you have pasted and use the ‘remove formatting’ button in the editing toolbar – the ‘T’ with a small ‘x’ to the right (see the image below). This will remove all formatting, pasted or otherwise, so the text then becomes plain.