Skip to content

Commit 0811e94

Browse files
committed
feat: live preview edit mode intro docs
1 parent be65618 commit 0811e94

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,22 @@
22
title: Live Preview Edit Mode
33
---
44

5+
import React from 'react';
6+
import VideoPlayer from '@site/src/components/Video/player';
7+
8+
**Edit Mode** turns the Live Preview interface into a full-fledged editing environment. It lets you modify elements directly in the preview.
9+
You can edit text, drag and drop elements, change images and links, inspect elements with precise measurements, and a lot more, right in the Live Preview. **Phoenix Code** automatically updates the source code.
10+
11+
**Edit Mode** also has all the capabilities of **Highlight Mode**, such as moving your cursor in the editor when an element is clicked, and highlighting the corresponding element in Live Preview. It also works in reverse: moving your cursor in the editor highlights the corresponding element in Live Preview.
12+
13+
---
14+
15+
## Enabling Edit Mode
16+
17+
To switch to Edit Mode, click the **mode selector dropdown** in the Live Preview toolbar and select **Edit Mode**.
18+
19+
<!-- TODO: add image showing the mode selector dropdown with Edit Mode selected -->
20+
21+
Alternatively, you can switch to Edit Mode by updating the `livePreviewMode` setting in the preferences file. See [Editing Preferences](../editing-text#editing-preferences) to learn how to edit the preferences file.
22+
23+
---

docs/08-Features/06-Live Preview/01-live-preview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Phoenix Code provides various options in the Live Preview toolbar.
102102
src="https://docs-images.phcode.dev/videos/live-preview/preview-mode-button.mp4"
103103
/>
104104

105-
* **Preview Mode Button** — Located right after the Reload button, this provides a quick shortcut to switch to Preview Mode. Click it to switch to Preview Mode; click again to return to your previous mode.
105+
* **Preview Mode Button** — Located right after the Reload button, this provides a quick shortcut to switch to Preview Mode. Click it to switch to Preview Mode; click again to return to your previous mode. You can also use the keyboard shortcut `F8` to toggle Preview Mode.
106106

107107
---
108108

0 commit comments

Comments
 (0)