Skip to content

Commit 64fb6f2

Browse files
committed
feat: add hyperlink section in docs
1 parent c8cbaaf commit 64fb6f2

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

docs/07-Pro Features/01-live-preview-edit.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ The Tool Box displays different options depending on the selected element type.
6767
*This button appears only for elements that can contain text (it is not available for `<img>`, `<video>`, `<br>`, etc.).*
6868

6969
- **Edit Hyperlink** *(link icon)*: Opens a floating input box that lets you edit the element's `href` attribute.
70+
See the [Edit Hyperlink](#edit-hyperlink) section for more details.
7071
*This button appears only for `<a>` elements.*
7172

7273
- **Image Gallery** *(image icon)*: Opens an image gallery at the bottom of the Live Preview, where you can browse and select an image. You can also choose an image from your computer. Phoenix Code automatically saves the image to your project folder and updates the src attribute of the element.
@@ -163,6 +164,21 @@ To cancel a drag, press `Esc`.
163164

164165
---
165166

167+
## Edit Hyperlink
168+
169+
The **Edit Hyperlink** feature lets you modify the URL and behavior of anchor (`<a>`) elements directly in the Live Preview.
170+
171+
To edit a hyperlink, select an `<a>` element and click the **Edit Hyperlink** button *(link icon)* in the Tool Box. A floating input box appears near the element.
172+
173+
The input box includes:
174+
- **URL input**: Edit the link's destination (`href` attribute). Press `Enter` to save your changes or `Esc` to cancel.
175+
- **Open in new tab**: Check this option to make the link open in a new tab. Checking this option will add `target="_blank"` in your source code.
176+
- **Open URL**: Clicking on this button opens the URL in your default browser. This option is available only in desktop apps.
177+
178+
<!-- TODO: add image showing the Edit Hyperlink input box -->
179+
180+
---
181+
166182
## Measurements
167183

168184
The **Measurements** feature displays ruler lines from the edges of a selected element to the document edges, showing exact pixel positions.

0 commit comments

Comments
 (0)