Remove excess code from Word
under review
M
Maria Barsema
We are facing difficulties as we get more editors copying and pasting content from Word documents which include unclean, excess code. Other CMSes and even Dreamweaver had this fence at the top of the cliff, but Squiz Matrix is forcing us to use an ambulance at the bottom. Surely not best UX. Can we please get this feature added to the WYSIWYG?
Autopilot
Merged in a post:
HTML Sanitisation in WYSIWYG
J
James Rogers
It would be great for WYSIWYGs to better tidy up the HTML for content pasted into them.
When content is pasted from an MS Word doc open in a browser, for example, more divs and random attributes are added to paragraphs, list items etc.
<div>
<p paraid="1594613327" paraeid="{29437590-4946-4e92-991e-53906a3cb58f}{232}"><strong>Email</strong>: <a href="mailto:me@example.com" target="_blank" rel="noreferrer noopener">mailto:me@example.com</a>
</p>
</div>
The above is a fairly modest example. Other issues with this include text just being wrapped in div tags (no paragraph, heading etc) and lists that are a series of consecutive <ul> elements with a single item.
Surplus HTML in WYSIWYG can also cause issues with the functionality - such as not being able to split text to separate paragraphs.
If things like this could be removed by default - or have site settings that inform what is and isn't allowed, would be very beneficial. It's very time consuming to fix manually.
J
John Efta
updated the status to
under review