@@ -36,12 +36,18 @@ const linkRegex = /issue-\d+/g;
3636<EnrichedTextInput linkRegex = { linkRegex } /* ... */ />;
3737```
3838
39+ :::tip
40+
41+ You can pass ` null ` to turn automatic detection
42+ off entirely.
43+
44+ :::
45+
3946:::note
4047
4148On iOS and Android the pattern is matched by the platform's native regex engine,
4249so not every JavaScript regex feature is available there - variable-width
43- lookbehinds, for instance, won't work. Pass ` null ` to turn automatic detection
44- off entirely.
50+ lookbehinds, for instance, won't work.
4551
4652:::
4753
@@ -90,8 +96,14 @@ const addLink = () => {
9096:::tip
9197
9298Passing a different ` text ` than what's selected replaces the selected text before
93- applying the link. To strip a link while keeping its text, call
94- ` removeLink(start, end) ` .
99+ applying the link.
100+
101+ :::
102+
103+ :::tip
104+
105+ To strip a link while keeping its text,
106+ you can call ` removeLink(start, end) ` .
95107
96108:::
97109
@@ -115,10 +127,14 @@ while editing an autolinked token breaks it.
115127
116128## Handling links with events
117129
118- There is an event that allows you to handle user's interaction with links inside ` EnrichedTextInput ` .
130+ There are two events that allows you to handle user interaction with links, one in each component .
119131
132+ In ` EnrichedTextInput ` :
120133- ** ` onLinkDetected ` ** fires when the cursor enters or leaves a created link.
121134
135+ In ` EnrichedText ` :
136+ - ** ` onLinkPress ` ** fires when the user presses a link.
137+
122138:::info
123139
124140This page covers creating and detecting links. To change how
0 commit comments