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
+23-2Lines changed: 23 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,9 +59,8 @@ 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. See the [Editing Text](#editing-text) section for more details.
63
63
*This button appears only for elements that can contain text (it is not available for `<img>`, `<video>`, `<br>`, etc.).*
64
-
> You can also edit text by double-clicking the element in the Live Preview.
65
64
66
65
-**Edit Hyperlink***(link icon)*: Opens a floating input box that lets you edit the element’s `href` attribute.
67
66
*This button appears only for `<a>` elements.*
@@ -101,3 +100,25 @@ When **Edit Highlights on Hover** is unchecked:
101
100
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.
102
101
103
102
---
103
+
104
+
## Editing Text
105
+
106
+
The **Editing Text** feature lets you modify text content directly in the Live Preview, with all changes automatically synced to the source code.
107
+
108
+
To start editing, **double-click** an element in the Live Preview or click the **Edit Text** button *(pencil icon)* in the Tool Box.
109
+
Edit the text as needed, then press `Enter` to save or `Esc` to cancel.
110
+
To insert a line break, press `Shift + Enter`.
111
+
112
+
> 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.
113
+
114
+
### Text Formatting
115
+
116
+
You can apply formatting to selected text using standard keyboard shortcuts:
117
+
-**Ctrl/Cmd + B** — Bold; wraps selected text in `<b>` tags
118
+
-**Ctrl/Cmd + I** — Italic; wraps selected text in `<i>` tags
119
+
-**Ctrl/Cmd + U** — Underline; wraps selected text in `<u>` tags
120
+
> If the text is already formatted, the formatting will be removed.
121
+
122
+
<!-- TODO: add video showing the edit text workflow -->
0 commit comments