eddyter 1.3.82 → 1.4.1-beta.1
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/assets/style.css +1 -1
- package/dist/components/SpecialCharactersWidget/SpecialCharactersWidget.d.ts +8 -0
- package/dist/components/SpecialCharactersWidget/index.d.ts +2 -0
- package/dist/editor/hooks/useFloatingToolbar.d.ts +1 -1
- package/dist/editorConfig.d.ts +1 -0
- package/dist/{generateDocxThumbnail-BMy6Y08H.js → generateDocxThumbnail-Dka6P9vZ.js} +1 -1
- package/dist/generatePdfThumbnail-BllzxUNM.js +53 -0
- package/dist/{generateXlsxThumbnail-By40CwXr.js → generateXlsxThumbnail-DjPc9AwZ.js} +1 -1
- package/dist/{html2pdf.bundle.min-DDJswFIT.js → html2pdf.bundle.min-uLMyd5s_.js} +1 -1
- package/dist/{index-CCwIE-wd.js → index-0sk4_PRi.js} +13 -13
- package/dist/{index-Jbres5pQ.js → index-BekVWmYK.js} +4 -4
- package/dist/{index-BAeOecnm.js → index-Bi9IXsuh.js} +1 -1
- package/dist/{index-baftIlXa.js → index-DJjthzdy.js} +19738 -19312
- package/dist/index.js +1 -1
- package/dist/types.d.ts +2 -0
- package/package.json +2 -2
- package/dist/generatePdfThumbnail-Ck8MvwkP.js +0 -53
package/README.md
CHANGED
|
@@ -196,6 +196,20 @@ The main editor component with authentication.
|
|
|
196
196
|
| `onFocus` | `() => void` | No | Called on editor focus |
|
|
197
197
|
| `onBlur` | `() => void` | No | Called on editor blur |
|
|
198
198
|
| `onHeightChange` | `(height: number) => void` | No | Called when editor height changes |
|
|
199
|
+
| `toolbarTopOffset` | `number` | No | Distance (px) the floating toolbar keeps from the viewport top when it detaches on scroll (default: `20`) |
|
|
200
|
+
|
|
201
|
+
### Floating Toolbar Offset
|
|
202
|
+
|
|
203
|
+
When a user scrolls down, the toolbar detaches from its original position and sticks to the top of the viewport. By default it stays **20 px** below the top edge. You can customize this gap — for example, if your app has its own fixed header:
|
|
204
|
+
|
|
205
|
+
```tsx
|
|
206
|
+
<ConfigurableEditorWithAuth
|
|
207
|
+
apiKey="your-api-key"
|
|
208
|
+
toolbarTopOffset={64} // sit below a 64px fixed header
|
|
209
|
+
/>
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
Set `toolbarTopOffset={0}` to pin the toolbar flush against the viewport top.
|
|
199
213
|
|
|
200
214
|
## Examples
|
|
201
215
|
|