A user clayg reports that pasting lengthy formatted content from Microsoft Word or Outlook into Discourse’s topic composer strips away formatting (bold, italics, hyperlinks), causing frustration for their organization’s president. The issue persists across Chrome and Firefox on Windows 10, despite being a hosted customer last updated September 1. Interestingly, pasting smaller chunks of text preserves formatting, and a workaround involves pasting into an external HTML editor (like quackit.com) first, then into Discourse. pfaffman asks for version, OS, and browser details, noting formatting should convert to Markdown unless disabled. Stephen suggests Edge’s recent paste behavior changes may be relevant. merefield confirms Edge’s misbehavior, linking to a related thread here. The consensus leans toward a Discourse paste-function bug, especially with large text volumes, potentially browser-dependent.
My org’s president writes a lengthy message every 2 weeks to share with the community. She writes it inside of Microsoft Word because she’ll spend several days working on it.
Suddenly, we’re finding that when we copy/paste from Word (or Outlook) into the “create topic” box in Discourse, formatting gets stripped away which includes things like, bold, italics and hyperlinks.
I’ve tested from different computers too. My president is not happy.
Thanks. I’m a hosted customer and I can’t tell which version I’m on, but my Admin screen says it was last updated on September 1. I have tested the pasting from Chrome and Firefox on two different Windows 10 PCs.
But I just discovered that if I copy/paste just a few paragraphs at a time, the formatting and hyperlinks paste over into a new topic box correctly. Weird.
On Saturday, my temporary work around was to copy/paste the entire 5-page document text into another HTML editor (quackit.com), and then from there I re-selected the text and successfully copy/pasted it to Discourse.
So I have to conclude there’s something amiss in the paste-content function in Discourse for larger bodies of text?