Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why Microsoft OneNote can show a link to the contents are copied from?

Tags:

windows

When I copied some good information online and pasted them on Microsoft OneNote, it can tell that

Pasted from [website_address]

I have done some search, but hard to find how they did this. How to add this feature to a software?

like image 384
code geass Avatar asked Feb 18 '14 03:02

code geass


People also ask

What does Copy link to section mean in OneNote?

On the shortcut menu, click Copy Link to Section. The link to the selected section and the title of the section are copied to the Clipboard. Click the location on the page that is to contain the link. On the Edit menu, click Paste. OneNote inserts a link that, when clicked, displays the target section.

How do I copy a link to OneNote?

Right-click the notebook name that the link should point to. On the shortcut menu, click Copy Link to Notebook. The link to the selected notebook and the title of the notebook are copied to the Clipboard. Right-click the location on the page that is to contain the link, and on the shortcut menu, choose Paste.

How do I remove a link from text in OneNote?

Remove a linkRight-click the link text or image, and then choose Remove Link on the shortcut menu. Note: You won't see this option for a link created automatically by OneNote. To remove this kind of link, choose Edit Link and change the Text to display to be descriptive text instead of the URL.


2 Answers

According to the HTML clipboard format, there is an optional SourceURL property in the description section of the HTML clipboard data. You can also extract it from the BASE element in the HTML fragment.

like image 77
Raymond Chen Avatar answered Oct 18 '22 14:10

Raymond Chen


Sometimes the website / web-page itself has javascript code that appends that text to anything copied from it. If this is the case you will see it when pasting into even notepad.exe

The main provider of such code is tynt.com and a lot of people find it annoying.

like image 21
Brian Avatar answered Oct 18 '22 14:10

Brian