Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent image from copying with text when using OneNote #583

Closed
kramttocs opened this issue Dec 22, 2023 · 6 comments
Closed

Prevent image from copying with text when using OneNote #583

kramttocs opened this issue Dec 22, 2023 · 6 comments

Comments

@kramttocs
Copy link

Text copied from OneNote looks to come in as html and then when I paste it into a rich text editor it adds the text along with an image of the text. Would like an option to just copy text so I don't have to remember to 'paste as text only'

@PzaThief
Copy link
Contributor

How about use text only paste hotkey? you can set the hotkey in keyboard shortcuts.
Or, do you want a option to change Ctrl+V to paste as text only?

@kramttocs
Copy link
Author

I am really not sure the best solution.
The problem with the text only hotkey is that it requires a person to know when it's needed. When copying only text from OneNote I wouldn't naturally think I'd need to use the text only paste option.

I also don't know that making the default paste as Text Only would be the right move as I don't really know how much that would impact.

@kramttocs
Copy link
Author

It's just odd what it's doing. I am copying from OneNote into Jira and it pastes the text fine but at the bottom it adds a screenshot of the text.

@PzaThief
Copy link
Contributor

PzaThief commented Dec 29, 2023

I think we need to look conflict point between copy part and paste part.
First copy part application need to make proper types clip.
and paste part application need to accept proper type of clip.

In OneNote copy action makes clip to have multiple types such as text, rich text, image(CF_DIB), etc. (you can find it clip detail, personally I don't know how much valuable image format from OneNote's text content)

So some app like PowerPoint makes choice list to user can select format of pasted content. (Nice compatibility for Office things)

But, Jira seems to have an issue with this point.
Issue, community ask
Jira probably doesn't want the image format to be found in the text content.
But there is image format in clipboard.

Thus, as you can see OneNote and Jira can not be a sweet couple.

In this situation I just recommend to use text only paste for a while before OneNote or Jira fix this problem.

@PzaThief
Copy link
Contributor

PzaThief commented Jan 4, 2024

Well, while maybe i'm late for make a noise, I think I can make you more happy(maybe...?).
I found Office things common behavior about images.
Excel, PowerPoint and OneNote makes image formats and texts in tandem in case of text content copy.
But, many times user want to not taking images with text content.
So I can make an advanced option to ignore image when it detects that the original source is text content.
I think it will be listing option of the process names like "Excel.exe; PowerPoint.exe".
how do you think about this option idea? Is it worth to work?
btw, happy new year~

@kramttocs
Copy link
Author

Happy New Year to you as well!
That would be fantastic!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants