Skip to content

Commit 2f7a15f

Browse files
committed
feat: add videos for live preview edit mode docs
1 parent 4b8d386 commit 2f7a15f

2 files changed

Lines changed: 12 additions & 10 deletions

File tree

docs/07-Pro Features/02-edit-mode-live-preview.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,10 @@ To start editing, **double-click** an element in the Live Preview or click the *
160160
Edit the text as needed, then press `Enter` to save or `Esc` to cancel.
161161
To insert a line break, press `Shift + Enter`.
162162

163+
<VideoPlayer
164+
src="https://docs-images.phcode.dev/videos/live-preview-edit/inline-text-editing.mp4"
165+
/>
166+
163167
> Text editing is available only for elements that can contain text. It is not supported for elements such as `<img>`, `<video>`, `<br>`, and similar non-text elements.
164168
165169
### Formatting Toolbar
@@ -185,16 +189,16 @@ Click the **More** button *(three-dots icon)* on the right side of the toolbar t
185189

186190
![More formatting options](./images/formatting-more.png "More formatting options")
187191

188-
<VideoPlayer
189-
src="https://docs-images.phcode.dev/videos/live-preview-edit/inline-text-editing.mp4"
190-
/>
191-
192192
## Drag and Drop
193193

194194
The **Drag and Drop** feature lets you reposition elements in the Live Preview by dragging them to a new location. The source code is automatically updated with the new structure when you drop the element.
195195

196196
To drag an element: click and hold the element, then move your mouse to the desired location. The element becomes semi-transparent while dragging. As you hover over potential drop targets, Phoenix Code displays visual indicators showing where the element will be placed.
197197

198+
<VideoPlayer
199+
src="https://docs-images.phcode.dev/videos/live-preview-edit/drag-drop.mp4"
200+
/>
201+
198202
#### Visual Indicators
199203
- **Arrow markers** to indicate the drop position:
200204
- **Up (↑) or Down (↓) arrows**: Places the element before or after the target element
@@ -211,22 +215,20 @@ To cancel a drag, press `Esc`.
211215

212216
> When you drag an element near the top or bottom edge of the viewport, the Live Preview automatically scrolls in that direction.
213217
214-
<VideoPlayer
215-
src="https://docs-images.phcode.dev/videos/live-preview-edit/drag-drop.mp4"
216-
/>
217-
218218
## Edit Hyperlink
219219

220220
The **Edit Hyperlink** feature lets you modify the URL and behavior of anchor (`<a>`) elements directly in the Live Preview.
221221

222+
<VideoPlayer
223+
src="https://docs-images.phcode.dev/videos/live-preview-edit/edit-hyperlink.mp4"
224+
/>
225+
222226
To edit a hyperlink, select an `<a>` element and click the **Edit Hyperlink** button *(chain icon)* in the [Control Box](#control-box). A panel appears near the element with the following options:
223227

224228
- **URL input**: Edit the link's destination (`href` attribute). Press `Enter` to save your changes or `Esc` to cancel.
225229
- **Opens in new tab**: Toggle this option to make the link open in a new tab. This adds `target="_blank"` in your source code.
226230
- **Open this link**: Opens the URL in your default browser. This option is available only in desktop apps.
227231

228-
<!-- Add an image here showing the Edit Hyperlink panel with URL input, new tab toggle, and open link button -->
229-
230232
## Cut, Copy, and Paste
231233

232234
You can cut, copy, and paste elements in Edit Mode using standard keyboard shortcuts or the Control Box **More Options** menu *(three-dots icon)*.
16.4 KB
Loading

0 commit comments

Comments
 (0)