Skip to content

Commit 06ec2bd

Browse files
committed
feat: add docs for formatting toolbar
1 parent c88ba94 commit 06ec2bd

1 file changed

Lines changed: 22 additions & 7 deletions

File tree

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

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -129,15 +129,30 @@ To start editing, **double-click** an element in the Live Preview or click the *
129129
Edit the text as needed, then press `Enter` to save or `Esc` to cancel.
130130
To insert a line break, press `Shift + Enter`.
131131

132-
> 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.
132+
> 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.
133133
134-
### Text Formatting
134+
### Formatting Toolbar
135135

136-
You can apply formatting to selected text using standard keyboard shortcuts:
137-
- **Ctrl/Cmd + B**: Bold; wraps selected text in `<b>` tags
138-
- **Ctrl/Cmd + I**: Italic; wraps selected text in `<i>` tags
139-
- **Ctrl/Cmd + U**: Underline; wraps selected text in `<u>` tags
140-
> If the text is already formatted, the formatting will be removed.
136+
When you start editing text, a **Formatting Toolbar** appears near the element. It gives you quick access to common text formatting options.
137+
138+
<!-- Add an image here showing the Formatting Toolbar with the B, I, U buttons and the more button -->
139+
140+
Select the text you want to format and click a formatting button, or use the keyboard shortcut. If no text is selected, the formatting is applied to the entire element. Clicking a format that is already applied removes it.
141+
142+
The toolbar shows three primary formatting buttons:
143+
- **Bold** (`Ctrl/Cmd + B`): `<b>` tag
144+
- **Italic** (`Ctrl/Cmd + I`): `<i>` tag
145+
- **Underline** (`Ctrl/Cmd + U`): `<u>` tag
146+
147+
#### More Formatting Options
148+
149+
Click the **More** button *(three-dots icon)* on the right side of the toolbar to see additional formatting options:
150+
- **Strikethrough**: `<s>` tag
151+
- **Subscript**: `<sub>` tag
152+
- **Superscript**: `<sup>` tag
153+
- **Code**: `<code>` tag
154+
155+
<!-- Add an image here showing the More formatting dropdown with Strikethrough, Subscript, Superscript, and Code options -->
141156

142157
<VideoPlayer
143158
src="https://docs-images.phcode.dev/videos/live-preview-edit/inline-text-editing.mp4"

0 commit comments

Comments
 (0)