Processing Ajax...

Title
Close Dialog

Message

Confirm
Close Dialog

Confirm
Close Dialog

Confirm
Close Dialog

User Image
Ape
1 discussion post
Hello! As the title says, I'm trying to take a plain text copy and turn it into rich text.

My use case is I'd like to take a URL and convert it into a rich text hyperlink with my own text. IE if I'm in MS Teams have it paste a hyperlink to that URL with the web page title so it's more appealing and more descriptive before the recipient clicks it. From prior experience this just looks like HTML, so this URL...

https://youtu.be/bRNgDmBw13s


... Becomes this.

<a href=https://youtu.be/bRNgDmBw13s>Beating Dark Souls with Mathematically Optimized DPS - YouTube</a>


However I can't work out how to switch the copy I have from plain text to rich text. And when I paste it it just comes out as raw HTML. There's some signal missing to say "this should turn into rich text" and I can't work out how to do that.

I have gotten around this before in Javascript, however that doesn't give me the general solution I'd like to achieve with Clipboard Fusion. See this Stack Overflow link for an example of how that looks. Note especially that it saves two copies to the clipboard, a plain text value and a rich text value (referred to as "text/plain" and "text/html") so wherever it's pasted can just receive the version it wants.

https://stackoverflow.com/a/50067769

I already have a macro using C# to fetch the page title from a URL, so that is no problem.

Thanks in advance
Mar 23, 2024  • #1
Thomas Malloch (BFS)'s profile on WallpaperFusion.com
I've put together a macro that should work for you. Here's how to get it into ClipboardFusion:

  • Download the file attached to this email
  • Open the ClipboardFusion Settings window
  • On the "Macros" tab, click the "Import" button
  • Select the file you downloaded in the first step
  • In the window that pops up, you can review the code and assign the Macro a HotKey
  • Click OK to close the Macro Edit window, then OK again to save and apply your changes

To use the macro, copy a url into the clipboard then run the macro. It should add the html format to the clipboard along with the copied text.
• Attachment: Set Clipboard with HTML Anchor.cfmacro [33,480 bytes]
10 days ago  • #2
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)