Skip to content

Commit 955e2a9

Browse files
committed
feat: add images in the live preview edit section
1 parent 1d1e120 commit 955e2a9

File tree

8 files changed

+13
-11
lines changed

8 files changed

+13
-11
lines changed

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

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@ 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... -->
19+
1820
---
1921

2022
## Enabling Edit Mode
2123

2224
To switch to Edit Mode, click the **mode selector dropdown** in the Live Preview toolbar and select **Edit Mode**.
2325

24-
<!-- TODO: add image showing the mode selector dropdown with Edit Mode selected -->
26+
![Live Preview Edit mode](./images/lp-mode.png "Live Preview edit mode")
2527

2628
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.
2729

@@ -32,7 +34,7 @@ Alternatively, you can switch to Edit Mode by updating the `livePreviewMode` set
3234
The **Info Box** displays information about an element.
3335
> By default, the Info Box appears when you hover over an element in the Live Preview, but this behavior can be changed. See the [Inspect Element on Hover](#inspect-element-on-hover) section for more details.
3436
35-
<!-- TODO: add image showing Info Box -->
37+
![Info Box](./images/info-box.png "Info Box")
3638

3739
The Info Box displays:
3840
- **Tag name and dimensions**: The element type (for example, `div`, `p`, `img`) and its size in pixels (width × height)
@@ -44,7 +46,7 @@ The Info Box displays:
4446

4547
The Info Box normally has a *blue* background for standard HTML elements (for example, `<div>`, `<p>`, `<img>`). For dynamically created (JavaScript-rendered) elements, it appears with a *gray* background, indicating that these elements cannot be edited.
4648

47-
<!-- TODO: add image showing the gray Info Box -->
49+
![Info Box non-editable](./images/info-box-gray.png "Info Box non editable")
4850

4951
---
5052

@@ -53,7 +55,7 @@ The Info Box normally has a *blue* background for standard HTML elements (for ex
5355
The **Tool Box** displays a set of tools you can use to modify elements in the Live Preview.
5456
> The Tool Box appears only when you click an element or select it through the source code.
5557
56-
<!-- TODO: add image showing Tool Box -->
58+
![Tool Box](./images/tool-box.png "Tool Box")
5759

5860
### Tool Box Options
5961

@@ -62,7 +64,7 @@ The Tool Box displays different options depending on the selected element type.
6264
- **Select Parent** *(up-arrow icon)*: Selects the parent of the currently selected element.
6365
*This button appears only when a valid parent exists (it is not shown when the parent is `body`, `html`, or a JavaScript-rendered element).*
6466

65-
- **Edit Text** *(pencil icon)*: Opens inline text editing for the selected element. You can edit text directly in the Live Preview, and Phoenix Code automatically updates the source code.
67+
- **Edit Text** *(pen icon)*: Opens inline text editing for the selected element. You can edit text directly in the Live Preview, and Phoenix Code automatically updates the source code.
6668
*This button appears only for elements that can contain text (it is not available for `<img>`, `<video>`, `<br>`, etc.).*
6769
See the [Inline Text Editing](#inline-text-editing) section for more details.
6870

@@ -94,7 +96,7 @@ By default, in Edit Mode, hovering over elements in the Live Preview highlights
9496

9597
To toggle this setting, click the **mode selector dropdown** in the Live Preview toolbar and unselect **Inspect Element on Hover**. By default, this option remains checked.
9698

97-
<!-- TODO: add image showing the Inspect Element on Hover option in the mode dropdown -->
99+
![Inspect Element on Hover](./images/inspect-element-hover.png "Inspect Element on Hover")
98100

99101
When **Inspect Element on Hover** is checked (default):
100102
- Hovering over elements shows highlights and the Info Box
@@ -127,7 +129,7 @@ You can apply formatting to selected text using standard keyboard shortcuts:
127129
- **Ctrl/Cmd + U**: Underline; wraps selected text in `<u>` tags
128130
> If the text is already formatted, the formatting will be removed.
129131
130-
<!-- TODO: add video showing the edit text workflow -->
132+
<!-- TODO: @devansh add video showing the edit text workflow -->
131133

132134
---
133135

@@ -161,7 +163,7 @@ To cancel a drag, press `Esc`.
161163

162164
> When you drag an element near the top or bottom edge of the viewport, the Live Preview automatically scrolls in that direction.
163165
164-
<!-- TODO: add video showing drag and drop workflow with visual feedback -->
166+
<!-- TODO: @devansh add video showing drag and drop workflow with visual feedback -->
165167

166168
---
167169

@@ -176,7 +178,7 @@ The input box includes:
176178
- **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.
177179
- **Open URL**: Clicking on this button opens the URL in your default browser. This option is available only in desktop apps.
178180

179-
<!-- TODO: add image showing the Edit Hyperlink input box -->
181+
![Edit Hyperlink](./images/edit-hyperlink.png "Edit Hyperlink")
180182

181183
---
182184

@@ -200,7 +202,7 @@ When you click an element in the Live Preview, keyboard focus moves to the Live
200202
- **Ctrl/Cmd + V**: Paste the copied or cut element below the currently selected element
201203

202204
### Using the More Options Menu
203-
<!-- TODO: add image showing the More Options menu -->
205+
![More Options dropdown](./images/more-options-dropdown.png "More Options Dropdown")
204206

205207
Click the **More Options** button *(three-dots icon)* in the Tool Box and select **Cut**, **Copy**, or **Paste** from the dropdown menu.
206208

@@ -223,7 +225,7 @@ These shortcuts work for all Edit Mode operations, including text edits, element
223225

224226
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.
225227

226-
<!-- TODO: add a video showing its workflow -->
228+
<!-- TODO: @devansh add a video showing its workflow -->
227229

228230
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.
229231

17.5 KB
Loading
17.8 KB
Loading
12.5 KB
Loading
31.3 KB
Loading
34 KB
Loading
39.2 KB
Loading
9.94 KB
Loading

0 commit comments

Comments
 (0)