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/content-link.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -244,6 +244,7 @@ The `<ContentLink />` component accepts the following props:
244
244
|`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 |
245
245
|`currentPath`|`string`| - | Current pathname to sync with [Web Previews plugin](https://www.datocms.com/marketplace/plugins/i/datocms-plugin-web-previews)|
246
246
|`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 |
247
248
|`root`|`React.RefObject<HTMLElement>`| - | Ref to limit scanning to this root element instead of the entire document |
248
249
249
250
## Advanced usage: the `useContentLink` hook
@@ -286,7 +287,7 @@ const {
286
287
-`onNavigateTo?: (path: string) => void` - Callback when Web Previews plugin requests navigation
287
288
-`root?: React.RefObject<HTMLElement>` - Ref to limit scanning to this root element
288
289
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.
0 commit comments