How we're saving publishers time by converting formatted text
Posted by:
Tobi Ogunsina, Senior Product Manager, GDS, Kevin Dew, Lead Developer, GDS and Dilwoar Hussain, Senior Frontend Developer, GDS, Posted on:
-
Categories:
Content, Product changes
![Screenshot of a javascript code snippet of the paste-html-to-govspeak implementation. The first line is a code comment reading: “npm install paste-html-to-govspeak”. The next line imports the module, reading: “import { pasteListener } from 'paste-html-to-govspeak'”. The last line gives an example of how to attach the paste event listener to the element, this reads as “element.addEventListener('paste', pasteListener)”.](https://insidegovuk.blog.gov.uk/wp-content/uploads/sites/24/2022/07/image1-copy-620x317.png)
We’ve reduced the time and effort it takes to create content on GOV.UK by improving the pasting of formatted content. Here’s why and how we did it.