-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
allow images in markdown preview editor to be copied #184432
allow images in markdown preview editor to be copied #184432
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a good start. Left some feedback. let me know if you have any questions about it
Regarding:
If the preview editor is not clicked on before copying, no new information will be copied to the clipboard.
Did you figure out causes this? Is there some way we can fix it?
extensions/markdown-language-features/src/commands/showPreview.ts
Outdated
Show resolved
Hide resolved
extensions/markdown-language-features/src/commands/showPreview.ts
Outdated
Show resolved
Hide resolved
extensions/markdown-language-features/src/commands/showPreview.ts
Outdated
Show resolved
Hide resolved
extensions/markdown-language-features/src/preview/previewManager.ts
Outdated
Show resolved
Hide resolved
extensions/markdown-language-features/src/commands/showPreview.ts
Outdated
Show resolved
Hide resolved
extensions/markdown-language-features/src/commands/showPreview.ts
Outdated
Show resolved
Hide resolved
extensions/markdown-language-features/src/preview/previewManager.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some minor feedback then let's merge this!
When an image in a markdown file's preview editor is right clicked, there is a new "Copy" button that allows you to copy from the preview editor and paste to the markdown file. This works in all cases when the preview editor tab is highlighted and focused. If the preview editor is not clicked on before copying, no new information will be copied to the clipboard.