You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When copying to the clipboard, some applications save the information to the clipboard in multiple formats, with the expectation that the receiving application will choose its preferred format.
For example, when copying to the clipboard MS OneNote saves the information in HTML, text and bitmap (image) format.
Steps to Reproduce
Select from OneNote and paste into new (empty) Joplin note.
Expected Behavior
Selected information is pasted once, as text (rationale: text is searchable and editable, so is more useful than an image.)
Actual Behavior
Selected information is pasted twice, once as text and once as an image.
Additional Information
If I paste into Notepad first and copy the text from Notepad into the clipboard to remove the additional formats, then pasting into Joplin only pastes text.
The text was updated successfully, but these errors were encountered:
Unfortunately I can't think of a fix for this and it seems to be specific to Microsoft's products. They shouldn't put an image in the clipboard if it's text that's been copied.
Hmm, maybe I'm missing something, but the fix seems straightforward.
There is a Joplin callback triggered in the capturing phase that checks for an image and, if found, adds it to the note.
Then the brace callback is triggered in the target phase that adds text if the clipboard has content in text/plain format.
Couldn't you check in the Joplin callback for content in text/plain format and skip inserting the image in that case?
Operating system
Windows 10 Pro 64-bit
Application
Desktop
Issue
Context
When copying to the clipboard, some applications save the information to the clipboard in multiple formats, with the expectation that the receiving application will choose its preferred format.
For example, when copying to the clipboard MS OneNote saves the information in HTML, text and bitmap (image) format.
Steps to Reproduce
Select from OneNote and paste into new (empty) Joplin note.
Expected Behavior
Selected information is pasted once, as text (rationale: text is searchable and editable, so is more useful than an image.)
Actual Behavior
Selected information is pasted twice, once as text and once as an image.
Additional Information
If I paste into Notepad first and copy the text from Notepad into the clipboard to remove the additional formats, then pasting into Joplin only pastes text.
The text was updated successfully, but these errors were encountered: