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

add explanation on how to copy SVG in Polypane #129

Merged
merged 2 commits into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 14 additions & 1 deletion src/tips/en/copy-inline-svg-image.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
date: 2024-05-28
authors: Patrick Brosset
title: Copy an inline SVG image's source code
tags: ["tip", "export", "browser:edge", "browser:chrome", "browser:firefox", "browser:safari"]
tags: ["tip", "export", "browser:edge", "browser:chrome", "browser:firefox", "browser:safari", "browser:polypane"]
---

To copy the SVG source code of an SVG image that's embedded directly in the HTML of a webpage, use the **Elements** tool in DevTools (**Inspector** in Firefox).
Expand All @@ -20,3 +20,16 @@ To copy the SVG source code of an SVG image that's embedded directly in the HTML
1. Paste the SVG source code wherever you want to use it.

![Copying the SVG source code in Edge DevTools](../../assets/img/copy-inline-svg-image.png)

* **In Polypane**

1. Right-click the SVG image on the web page, and then click **Inspect**.

The **Elements** panel opens with the SVG selected
1. in the **Element Info** part, click the **Copy** button and then select **Copy Outer HTML**.

The SVG source code is now copied to your clipboard.

1. Paste the SVG source code wherever you want to use it.

![Copying the SVG source code in Polypane Elements Panel](../../assets/img/copy-inline-svg-image-polypane.png)