Skip to content

Commit d8e73af

Browse files
committed
Using targetOption property of draftjs for link target.
1 parent 6a9bb23 commit d8e73af

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

dist/html-to-draftjs.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "html-to-draftjs",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"main": "dist/html-to-draftjs.js",
55
"repository": {
66
"type": "git",
@@ -21,7 +21,7 @@
2121
"webpack": "^3.9.1"
2222
},
2323
"peerDependencies": {
24-
"draft-js": "^0.9.x || ^0.10.x"
24+
"draft-js": "^0.10.x"
2525
},
2626
"scripts": {
2727
"start": "react-scripts start",

src/library/getEntityId.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const getEntityId = (node) => {
1818
} else {
1919
entityConfig.url = node.getAttribute ? node.getAttribute('href') || node.href : node.href;
2020
entityConfig.title = node.innerHTML;
21-
entityConfig.target = node.target;
21+
entityConfig.targetOption = node.target;
2222
entityId = Entity.__create(
2323
'LINK',
2424
'MUTABLE',

0 commit comments

Comments
 (0)