File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed
widgets/text_editors/RichText Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -96,10 +96,7 @@ class Fold extends Component {
96
96
< div className = "fold__top__arrow-title" >
97
97
{ arrowIcon }
98
98
{ icon }
99
- < div
100
- className = "fold__top__title"
101
- dangerouslySetInnerHTML = { { __html : name } }
102
- />
99
+ < div className = "fold__top__title" > { name } </ div >
103
100
</ div >
104
101
{ deleteButton ( deleteContainer ) }
105
102
</ div >
Original file line number Diff line number Diff line change 8
8
9
9
import React from 'react' ;
10
10
import PropTypes from 'prop-types' ;
11
- import { Entity } from 'draft-js' ;
12
11
13
12
const LinkDecorator = props => {
14
- const { url} = Entity . get ( props . entityKey ) . getData ( ) ;
15
-
16
13
return (
17
- < a href = { url } style = { props . style } >
14
+ < a href = "#" style = { props . style } >
18
15
{ props . children }
19
16
</ a >
20
17
) ;
21
18
} ;
22
19
23
20
LinkDecorator . propTypes = {
24
- entityKey : PropTypes . string . isRequired ,
25
21
style : PropTypes . object . isRequired ,
26
22
children : PropTypes . oneOfType ( [ PropTypes . array , PropTypes . element ] )
27
23
. isRequired ,
You can’t perform that action at this time.
0 commit comments