File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ const getEntityId = (node) => {
10
10
entityConfig . url = node . href ;
11
11
entityConfig . text = node . innerHTML ;
12
12
entityConfig . value = node . dataset . value ;
13
- entityId = Entity . create (
13
+ entityId = Entity . __create (
14
14
'MENTION' ,
15
15
'IMMUTABLE' ,
16
16
entityConfig ,
@@ -19,7 +19,7 @@ const getEntityId = (node) => {
19
19
entityConfig . url = node . href ;
20
20
entityConfig . title = node . innerHTML ;
21
21
entityConfig . target = node . target ;
22
- entityId = Entity . create (
22
+ entityId = Entity . __create (
23
23
'LINK' ,
24
24
'MUTABLE' ,
25
25
entityConfig ,
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ function genFragment(
48
48
entityConfig . alt = node . alt ;
49
49
entityConfig . height = node . style . height ;
50
50
entityConfig . width = node . style . width ;
51
- const entityId = Entity . create (
51
+ const entityId = Entity . __create (
52
52
'IMAGE' ,
53
53
'MUTABLE' ,
54
54
entityConfig ,
@@ -64,7 +64,7 @@ function genFragment(
64
64
entityConfig . src = node . src ;
65
65
entityConfig . height = node . height ;
66
66
entityConfig . width = node . width ;
67
- const entityId = Entity . create (
67
+ const entityId = Entity . __create (
68
68
'EMBEDDED_LINK' ,
69
69
'MUTABLE' ,
70
70
entityConfig ,
@@ -137,7 +137,7 @@ export default function htmlToDraft(html: string): Object {
137
137
let entityMap = new OrderedMap ( { } ) ;
138
138
chunk . entities && chunk . entities . forEach ( entity => {
139
139
if ( entity ) {
140
- entityMap = entityMap . set ( entity , Entity . get ( entity ) ) ;
140
+ entityMap = entityMap . set ( entity , Entity . __get ( entity ) ) ;
141
141
}
142
142
} ) ;
143
143
let start = 0 ;
You can’t perform that action at this time.
0 commit comments