Skip to content

Commit 1e68372

Browse files
committed
Update ContentLink documentation with stripStega prop
1 parent 0e7dc71 commit 1e68372

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

docs/content-link.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ The `<ContentLink />` component accepts the following props:
244244
| `onNavigateTo` | `(path: string) => void` | - | Callback when [Web Previews plugin](https://www.datocms.com/marketplace/plugins/i/datocms-plugin-web-previews) requests navigation to a different page |
245245
| `currentPath` | `string` | - | Current pathname to sync with [Web Previews plugin](https://www.datocms.com/marketplace/plugins/i/datocms-plugin-web-previews) |
246246
| `enableClickToEdit` | `true \| { scrollToNearestTarget: true }` | - | Enable click-to-edit overlays on mount. Pass `true` or an object with options. If undefined, click-to-edit is disabled |
247+
| `stripStega` | `boolean` | - | Whether to strip stega encoding from text nodes after stamping |
247248
| `root` | `React.RefObject<HTMLElement>` | - | Ref to limit scanning to this root element instead of the entire document |
248249

249250
## Advanced usage: the `useContentLink` hook
@@ -286,7 +287,7 @@ const {
286287
- `onNavigateTo?: (path: string) => void` - Callback when Web Previews plugin requests navigation
287288
- `root?: React.RefObject<HTMLElement>` - Ref to limit scanning to this root element
288289

289-
**Note:** The `<ContentLink />` component always uses `stripStega: true` for clean DOM output.
290+
**Note:** The `<ContentLink />` component allows controlling stega stripping through the `stripStega` prop. When undefined, the underlying library's default behavior is used.
290291

291292
### Example: Custom editing toolbar
292293

0 commit comments

Comments
 (0)