Copier-coller depuis Google Docs brise les @ mentions

I’m not sure this is an actual bug or if anything can easily be done about it, but in our community we ran afoul of a behavior that is unexpected. Many members work offline on posts, then copy/paste them from e.g. google docs into discourse. In most cases, the formatting and syntax transfers correctly and beautifully. It’s not 100% perfect, though, so I have been nudging colleagues to sanity check after posting and also doing some ninja edits myself on their posts to fix formatting and syntax.

@ mentions transfer as hyperlinks that look correct in the preview and in the published post, but are actually not @ mentions. So they sneak through unnoticed… the screenshot below is of an important announcement that should have been delivered to the email inboxes of all staff, but was not. It was only a few weeks later when troubleshooting that we noticed the syntax was off. Oops.

Si j’ai raison sur ce que je pense se produire, cela ne semble pas vraiment spécifique à Google Docs, mais plutôt à un problème de flux de travail.

Lorsque vous avez une mention de groupe (par exemple @staff), elle est intégrée avec un lien vers l’URL du groupe. Ce qui semble se produire, c’est qu’ils copient le rendu du message plutôt que la source du message.

Au lieu de le faire, ils devraient copier la source du message pour éviter que cela ne se produise.

Une fonctionnalité de Discourse qui pourrait convenir à votre cas d’usage est notre fonctionnalité « Brouillons partagés ».

This is a message with an @tobiaseigen mention, written in google docs. I am going to paste it into a post and see what happens. :rocket:

Hmm… you are right. I will check in with colleagues on their workflow. Maybe they can show me the google doc they use. The main issue is that we have some announcements professionally translated. The translators are not members of our community but are given access to a google doc to do the translation. So we can’t rely on the shared drafts feature or a discourse-based solution. Generally also we have folks who work offline much of the time so they draft offline and then copy paste. Hilarity ensues.

OK - thanks @supermathie I can confirm this is a workflow problem not a functionality problem. Nicely diagnosed! :seedling: And appreciate the time taken to help figure it out. Many thanks.

Here’s what the google doc source looks like - and the @ mention is a fully baked hyperlink. So someone most likely wrote it in the composer on discourse and copy/pasted from the preview into google docs.

56%20AM

Je suppose que c’est bon pour toi, @tobiaseigen ? :smiley: