Skip to content

Commit 8cdbef9

Browse files
Update docs/docs/api-reference/enriched-text-input.md
Co-authored-by: Krystian Sienkiewicz <146986839+hejsztynx@users.noreply.github.com>
1 parent d54d822 commit 8cdbef9

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

docs/docs/api-reference/enriched-text-input.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,15 @@ custom attributes.
845845
- `attributes?: Record<string, string>` — additional custom attributes for the
846846
mention, preserved through parsing to and from HTML
847847

848+
:::note
849+
850+
The attributes you pass to `setMention` ride along in the HTML
851+
and survive a round-trip through `getHTML` / `setValue`. Prefix custom keys with
852+
`data-` if they need to outlive a sanitizer - see the note in
853+
[Mentions](/rich-text-formatting/mentions).
854+
855+
:::
856+
848857
### `.setValue()`
849858

850859
```ts

0 commit comments

Comments
 (0)