Skip to content

Commit 2708e41

Browse files
committed
feat: live preview edit mode document
1 parent a4cea31 commit 2708e41

1 file changed

Lines changed: 17 additions & 18 deletions

File tree

  • docs/08-Features/08-Live Preview

docs/08-Features/08-Live Preview/index.md

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -77,28 +77,24 @@ The left side of the toolbar groups three controls:
7777

7878
* **Design Mode**: The maximize icon after the reload button is for Design Mode. This mode hides the editor and expands the Live Preview to take over the full window, giving you more room to work on the page with [Edit Mode](../../Pro%20Features/edit-mode-live-preview) or [Phoenix Code AI](../../Pro%20Features/ai-chat). Click the icon again to exit Design Mode.
7979

80-
* **Edit / Preview Toggle**: The pencil icon. Toggles between **Edit Mode** *(Pro)* and **Preview Mode**. The pencil lights up when Edit Mode is active. Press `F8` for the same toggle.
80+
* **Live Preview Modes**: The pen icon lets you quickly switch between [Edit Mode](../../Pro%20Features/edit-mode-live-preview) and Preview Mode. The pen lights up when Edit Mode is active. You can also press `F8` to toggle between these two modes.
8181

82-
<VideoPlayer
83-
src="https://docs-images.phcode.dev/videos/live-preview-edit/live-preview-edit.mp4"
84-
/>
85-
86-
* **Mode Dropdown**: The chevron next to the pencil opens a menu of Live Preview modes:
82+
For more mode options, click the chevron next to the pen icon. This opens a dropdown where you can select from all available Live Preview modes:
8783

8884
![Live Preview mode dropdown](../images/livePreview/lp-mode.png "Live Preview mode dropdown")
8985

90-
- **Preview Mode**: View-only. The page behaves like a normal browser but still updates in real-time as you edit code.
91-
- **Highlight Mode**: Click any element to see its size, padding, and margins. Phoenix Code jumps to that element in your source code so you can start editing.
92-
- **Edit Mode** *(Pro)*: Edit elements directly in the preview, change text, drag elements, swap images, and more. Phoenix Code updates your source code automatically. [Learn more](../../Pro%20Features/edit-mode-live-preview).
86+
- **Preview Mode**: View-only. The page behaves like a normal browser but still updates as you edit code. All interactions with the page (clicks, hovers, etc.) are disabled.
87+
- **Highlight Mode**: Click any element to see its paddings and margins. Phoenix Code also jumps to that element in your source code so you can start editing right away.
88+
- **Edit Mode**: Edit elements directly in the preview. Insert elements, change text, drag elements, swap images, and more. Phoenix Code updates your source code automatically. [Learn more](../../Pro%20Features/edit-mode-live-preview).
9389

94-
<VideoPlayer
95-
src="https://docs-images.phcode.dev/videos/live-preview/highlight-mode.mp4"
96-
/>
90+
When Edit Mode is active, two extra options appear in the same dropdown:
9791

98-
When Edit Mode is active (Pro), two extra options appear in the same dropdown:
92+
- **Inspect Element on Hover**: Highlights elements as you hover, instead of only on click. This option is enabled by default. [Learn more](../../Pro%20Features/edit-mode-live-preview#inspect-element-on-hover).
93+
- **Show Measurements**: Displays ruler lines from the edges of the selected element to the edges of the Live Preview, with labels showing the exact pixel positions. This option is disabled by default. [Learn more](../../Pro%20Features/measurements).
9994

100-
- **Inspect Element on Hover**: Highlights elements as you hover, instead of only on click.
101-
- **Show Measurements**: Shows ruler-style guide lines around the selected element with its size and spacing.
95+
:::note
96+
Edit Mode and the two extra options above are Phoenix Pro features.
97+
:::
10298

10399

104100
![Live Preview center toolbar](../images/livePreview/lp-central.png "Live Preview pin, file name, and pop out")
@@ -114,8 +110,11 @@ The center section of the toolbar groups three controls for the currently previe
114110

115111
![Live Preview browsers](../images/livePreview/lp-browsers.png "Live Preview browsers")
116112

117-
* **Browser Icons** — Select a specific browser icon to open the page in that browser. This helps you see how your page looks across different browsers. The icons are hidden by default. You need to hover over the toolbar to reveal them.
118-
> This option is available only in Desktop apps.
113+
* **Browser Icons**: Select a specific browser icon to open the page in that browser. This helps you see how your page looks across different browsers. The icons are hidden by default and only appear when you hover over the toolbar.
114+
115+
:::note
116+
This option is available only in Desktop apps.
117+
:::
119118

120119

121120
![Live Preview right toolbar](../images/livePreview/lp-right.png "Live Preview settings and device size")
@@ -124,7 +123,7 @@ The right end of the toolbar has two controls:
124123

125124
* **Live Preview Settings**: The gear icon on the left. Clicking it opens the Live Preview settings dialog. This icon is hidden by default and only appears when you hover over the toolbar. [Read more about Live Preview Settings](./live-preview-settings/#accessing-live-preview-settings).
126125

127-
* **Device Size Presets** *(Pro)*: Resize the Live Preview to common phone, tablet, and desktop widths. Click the icon to cycle through sizes, or click the chevron for the full list. See [Resize Ruler](../../Pro%20Features/resize-ruler) for more.
126+
* **Device Size Presets**: Resize the Live Preview to common phone, tablet, and desktop widths. Click the icon to cycle through sizes, or click the chevron for the full list. See [Resize Ruler](../../Pro%20Features/resize-ruler) for more.
128127

129128
<VideoPlayer
130129
src="https://docs-images.phcode.dev/website/videos/device-size-pro-dialog.mp4"

0 commit comments

Comments
 (0)