@kontakto/email-template-editor 2.4.0 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -0
- package/dist/index.cjs +247 -87
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.js +249 -90
- package/dist/index.js.map +1 -1
- package/package.json +10 -3
package/README.md
CHANGED
|
@@ -223,6 +223,20 @@ function MyApp() {
|
|
|
223
223
|
}
|
|
224
224
|
```
|
|
225
225
|
|
|
226
|
+
### Keyboard shortcuts
|
|
227
|
+
|
|
228
|
+
The editor surfaces a few global shortcuts. Inside text fields or rich-text blocks the native browser behavior takes over — global undo/redo only fires when focus is on the canvas (not mid-typing).
|
|
229
|
+
|
|
230
|
+
| Action | macOS | Windows / Linux |
|
|
231
|
+
|---|---|---|
|
|
232
|
+
| Undo | ⌘ + Z | Ctrl + Z |
|
|
233
|
+
| Redo | ⌘ + Shift + Z | Ctrl + Shift + Z, Ctrl + Y |
|
|
234
|
+
| Bold (inside text) | ⌘ + B | Ctrl + B |
|
|
235
|
+
| Italic (inside text) | ⌘ + I | Ctrl + I |
|
|
236
|
+
| Link (inside text) | ⌘ + K | Ctrl + K |
|
|
237
|
+
|
|
238
|
+
The undo history tracks document mutations only (block insert/delete/move, content edits, style changes, variable edits). Rapid consecutive edits (dragging a slider, typing a burst) collapse into a single history entry. The ring buffer holds the last 100 entries and resets whenever a new template is loaded.
|
|
239
|
+
|
|
226
240
|
### Stand-alone version using Vite
|
|
227
241
|
|
|
228
242
|
This project includes a standalone version that can be run using Vite:
|