Skip to content

Commit a8d7c8f

Browse files
committed
feat: add all the live preview edit videos
1 parent 5450b1f commit a8d7c8f

File tree

4 files changed

+19
-204
lines changed

4 files changed

+19
-204
lines changed

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

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ You can edit text, drag and drop elements, change images and links, inspect elem
1515

1616
**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.
1717

18-
<!-- TODO: @devansh we can have a video here showing the features... -->
18+
<VideoPlayer
19+
src="https://docs-images.phcode.dev/videos/live-preview-edit/live-preview-edit.mp4"
20+
/>
1921

2022
---
2123

@@ -129,7 +131,9 @@ You can apply formatting to selected text using standard keyboard shortcuts:
129131
- **Ctrl/Cmd + U**: Underline; wraps selected text in `<u>` tags
130132
> If the text is already formatted, the formatting will be removed.
131133
132-
<!-- TODO: @devansh add video showing the edit text workflow -->
134+
<VideoPlayer
135+
src="https://docs-images.phcode.dev/videos/live-preview-edit/inline-text-editing.mp4"
136+
/>
133137

134138
---
135139

@@ -163,7 +167,9 @@ To cancel a drag, press `Esc`.
163167

164168
> When you drag an element near the top or bottom edge of the viewport, the Live Preview automatically scrolls in that direction.
165169
166-
<!-- TODO: @devansh add video showing drag and drop workflow with visual feedback -->
170+
<VideoPlayer
171+
src="https://docs-images.phcode.dev/videos/live-preview-edit/drag-drop.mp4"
172+
/>
167173

168174
---
169175

@@ -225,7 +231,9 @@ These shortcuts work for all Edit Mode operations, including text edits, element
225231

226232
A **Quick Preview Toggle** button is available at the top center of the Live Preview. It lets you quickly switch to Preview Mode and back to the previously selected mode (Highlight Mode or Edit Mode). This is especially useful when working with a popped-out Live Preview window. You can also use the `F8` keyboard shortcut to toggle Preview Mode.
227233

228-
<!-- TODO: @devansh add a video showing its workflow -->
234+
<VideoPlayer
235+
src="https://docs-images.phcode.dev/videos/live-preview-edit/quick-preview-toggle.mp4"
236+
/>
229237

230238
The button is partially visible as a thin strip at the top edge of the Live Preview. Moving your cursor over this strip reveals the full button, which you can click to toggle Preview Mode.
231239

@@ -246,5 +254,8 @@ Add the `phcode-no-lp-edit` class to any element you want to behave normally:
246254
When an element has this class, the element behaves as if you're in Preview Mode.
247255
> This also applies to all child elements inside the marked element.
248256
257+
If you want only to exclude the particular element and not its children, use the class `phcode-no-lp-edit-this`.
258+
249259
> Placing your cursor on the element in the source code will still select it in Live Preview and allow you to use edit features.
250260
261+
---

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

Lines changed: 0 additions & 197 deletions
This file was deleted.

docs/07-Pro Features/02-image-gallery.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ To download the image to your project instead, click the **Download image** butt
3838
3939
Below each thumbnail, the photographer's name and a link to their profile is displayed.
4040

41-
<!-- TODO: @devansh add video showing image gallery workflow -->
41+
<VideoPlayer
42+
src="https://docs-images.phcode.dev/videos/live-preview-edit/image-gallery.mp4"
43+
/>
4244

4345
---
4446

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,8 @@ Phoenix Code provides various options in the Live Preview toolbar.
9595
9696
---
9797

98-
<!-- TODO: @devansh update this video -->
9998
<VideoPlayer
100-
src="https://docs-images.phcode.dev/videos/live-preview/preview-mode-button.mp4"
99+
src="https://docs-images.phcode.dev/videos/live-preview/preview-mode-btn.mp4"
101100
/>
102101

103102
* **Preview Mode Button** — Located next to the Reload button, this provides a quick shortcut to switch modes.

0 commit comments

Comments
 (0)