Forum Discussion

TF25's avatar
TF25
Copper Contributor
Aug 21, 2025
Solved

Copy text always as text from Onenote

Hi there,

I have the following problem: I often copy paste things from here to there which is never is any problem.
Except I am copying from Onenote. Because then in most of the cases it just spits out an image of the text I copied instead of the text itself.
ctrl+ shift + v often works, but not always and also it is quite annoying to remember everytime to hit shift as well, when pasting from Onenote.

The only real solution I found so far was an auto hotkey script. But as I am working with this on my business PC I'd like to have a non thirdparty solution.

So I thought there might be a solution to this using powershell, where it checks, if I copy text from Onenote and if so, remove formatting automatically, so I can paste it as text right away with ctrl+v

Anyone came across this issue and might have a working solution already as I am not familiar with powershell unfortunately?

Best regards!

  • Hi TF25​,

    PowerShell can't help you here.

    Applications have their own direct clipboard implementation which outside processes can't generally interfere with.

    Microsoft's own advice for application developers is that if something is copied to the clipboard, it should be done so using as many different formats as possible (and practical). In OneNote's case, it's using at least two methods of storage:

    • Rich text/HTML;
    • Image.

    When you subsequently choose to paste into another application, that application doesn't speak to OneNote. All it sees it content on the clipboard, and if there's multiple presentations available, it's free to choose using any prioritisation is pleases which format(s) it's going to pull down.

    This is why you see many varied paste options in applications like Excel, Word, etc.

    When it comes to pasting in a browser like Edge, there's an additional level of control, which is on the visual control itself. For example, a textbox control will only be interested in plain text content on the clipboard; and image control may only be interested in an image; while other controls will let you drop both, at which point it'll decide which it prefers the most - which is why you may get an image by default but then text if you "control" the choice through using Ctrl+Shift+V.

     

    Anyhow, that background information is outside the scope of PowerShell, which unfortunately is of no assistance in this application-to-clipboard relationship. The most you can hope for is that the applications offer some control over their own copying and pasting behaviours, where for OneNote, it's limited to what you can find listed in the keyboard shortcut reference:

     

     

    Cheers,

    Lain

1 Reply

  • LainRobertson's avatar
    LainRobertson
    Silver Contributor

    Hi TF25​,

    PowerShell can't help you here.

    Applications have their own direct clipboard implementation which outside processes can't generally interfere with.

    Microsoft's own advice for application developers is that if something is copied to the clipboard, it should be done so using as many different formats as possible (and practical). In OneNote's case, it's using at least two methods of storage:

    • Rich text/HTML;
    • Image.

    When you subsequently choose to paste into another application, that application doesn't speak to OneNote. All it sees it content on the clipboard, and if there's multiple presentations available, it's free to choose using any prioritisation is pleases which format(s) it's going to pull down.

    This is why you see many varied paste options in applications like Excel, Word, etc.

    When it comes to pasting in a browser like Edge, there's an additional level of control, which is on the visual control itself. For example, a textbox control will only be interested in plain text content on the clipboard; and image control may only be interested in an image; while other controls will let you drop both, at which point it'll decide which it prefers the most - which is why you may get an image by default but then text if you "control" the choice through using Ctrl+Shift+V.

     

    Anyhow, that background information is outside the scope of PowerShell, which unfortunately is of no assistance in this application-to-clipboard relationship. The most you can hope for is that the applications offer some control over their own copying and pasting behaviours, where for OneNote, it's limited to what you can find listed in the keyboard shortcut reference:

     

     

    Cheers,

    Lain

Resources