Skip to content

Commit 148ad12

Browse files
committed
2 parents 039a7eb + efa8376 commit 148ad12

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

draft-js-linkify-plugin/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@ import createLinkifyPlugin from 'draft-js-linkify-plugin';
1212
const linkifyPlugin = createLinkifyPlugin();
1313
```
1414

15+
You may also optionally set a prefix or define the target value for the resulting `<a>` tag:
16+
17+
```js
18+
const linkifyPlugin = createLinkifyPlugin({
19+
prefix: 'https://', // default is 'http://'
20+
target: '_blank' // default is '_self'
21+
});
22+
```
23+
1524
## Importing the default styles
1625

1726
The plugin ships with a default styling available at this location in the installed package:

0 commit comments

Comments
 (0)