You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/07-Pro Features/01-live-preview-edit.md
+21-1Lines changed: 21 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ Alternatively, you can switch to Edit Mode by updating the `livePreviewMode` set
26
26
27
27
The **Info Box** displays information about an element. It is normally shown at the top-left of the element, but if there is not enough space, Phoenix Code may display it on another side where sufficient space is available. Phoenix Code attempts to position the Info Box as close to the element as possible while keeping it visible.
28
28
29
-
> By default, the Info Box appears when you hover over an element in the Live Preview, but this behavior can be changed. See the **Edit Highlights on Hover** section for more details.
29
+
> By default, the Info Box appears when you hover over an element in the Live Preview, but this behavior can be changed. See the [Edit Highlights on Hover](#edit-highlights-on-hover) section for more details.
30
30
31
31
<!-- TODO: add image showing Info Box -->
32
32
@@ -81,3 +81,23 @@ The Tool Box displays different options depending on the selected element type.
81
81
> The Tool Box is never shown for non-editable elements that are dynamically created by JavaScript.
82
82
83
83
---
84
+
85
+
## Edit Highlights on Hover
86
+
87
+
By default, in Edit Mode, hovering over elements in the Live Preview highlights them and displays the Info Box. You can change this behavior to show highlights only when you click elements instead.
88
+
89
+
To toggle this setting, click the **mode selector dropdown** in the Live Preview toolbar and unselect **Edit Highlights on Hover**. By default, this option remains checked.
90
+
91
+
<!-- TODO: add image showing the Edit Highlights on Hover option in the mode dropdown -->
92
+
93
+
When **Edit Highlights on Hover** is checked (default):
94
+
- Hovering over elements shows highlights and the Info Box
95
+
- Clicking an element selects it and displays the Tool Box along with the Info Box
96
+
97
+
When **Edit Highlights on Hover** is unchecked:
98
+
- Hovering over elements has no effect
99
+
- Clicking an element shows highlights, the Info Box, and the Tool Box
100
+
101
+
Alternatively, you can change this setting by updating the `livePreviewElementHighlights` preference in the preferences file. Set it to `"hover"` (default) or `"click"`. See [Editing Preferences](../editing-text#editing-preferences) to learn how to edit the preferences file.
Copy file name to clipboardExpand all lines: docs/07-Pro Features/01-live-preview-edit.md~
+21-1Lines changed: 21 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@ The Tool Box displays different options depending on the selected element type.
59
59
- **Select Parent** *(up-arrow icon)*: Selects the parent of the currently selected element.
60
60
*This button appears only when a valid parent exists (it is not shown when the parent is `body`, `html`, or a JavaScript-rendered element).*
61
61
62
-
- **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. Press `Enter` to save the edited text or `Esc` to cancel.
62
+
- **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. Press `Enter` to save the edited text or `Esc` to cancel.
63
63
*This button appears only for elements that can contain text (it is not available for `<img>`, `<video>`, `<br>`, etc.).*
64
64
> You can also edit text by double-clicking the element in the Live Preview.
65
65
@@ -81,3 +81,23 @@ The Tool Box displays different options depending on the selected element type.
81
81
> The Tool Box is never shown for non-editable elements that are dynamically created by JavaScript.
82
82
83
83
---
84
+
85
+
## Edit Highlights on Hover
86
+
87
+
By default, in Edit Mode, hovering over elements in the Live Preview highlights them and displays the Info Box. You can change this behavior to show highlights only when you click elements instead.
88
+
89
+
To toggle this setting, click the **mode selector dropdown** in the Live Preview toolbar and unselect **Edit Highlights on Hover**. By default, this option remains checked.
90
+
91
+
<!-- TODO: add image showing the Edit Highlights on Hover option in the mode dropdown -->
92
+
93
+
When **Edit Highlights on Hover** is checked (default):
94
+
- Hovering over elements shows highlights and the Info Box
95
+
- Clicking an element selects it and displays the Tool Box along with the Info Box
96
+
97
+
When **Edit Highlights on Hover** is unchecked:
98
+
- Hovering over elements has no effect
99
+
- Clicking an element shows highlights, the Info Box, and the Tool Box
100
+
101
+
Alternatively, you can change this setting by updating the `livePreviewElementHighlights` preference in the preferences file. Set it to `"hover"` (default) or `"click"`. See [Editing Preferences](../editing-text#editing-preferences) to learn how to edit the preferences file.
0 commit comments