react-froala-wysiwyg
Advanced tools
Comparing version 2.9.5 to 2.9.6
@@ -6,4 +6,4 @@ import React from 'react'; | ||
render () { | ||
return <this.tag ref="el">{this.props.children}</this.tag>; | ||
return <this.tag ref={el => this.el = el}>{this.props.children}</this.tag>; | ||
} | ||
} |
@@ -8,5 +8,5 @@ import React from 'react'; | ||
return ( | ||
<a ref='el'>{this.props.children}</a> | ||
<a ref={el => this.el = el}>{this.props.children}</a> | ||
); | ||
} | ||
} |
@@ -8,5 +8,5 @@ import React from 'react'; | ||
return ( | ||
<button ref='el'>{this.props.children}</button> | ||
<button ref={el => this.el = el}>{this.props.children}</button> | ||
); | ||
} | ||
} |
@@ -41,3 +41,3 @@ /* global $ */ | ||
componentDidMount () { | ||
let tagName = this.refs.el.tagName.toLowerCase(); | ||
let tagName = this.el.tagName.toLowerCase(); | ||
if (this.SPECIAL_TAGS.indexOf(tagName) != -1) { | ||
@@ -74,8 +74,8 @@ this.tag = tagName; | ||
this.$element = $(this.refs.el); | ||
this.$element = $(this.el); | ||
if(this.props.model) { | ||
this.$element[0].innerHTML = this.props.model; | ||
} | ||
this.setContent(true); | ||
@@ -82,0 +82,0 @@ |
@@ -7,5 +7,5 @@ import React from 'react'; | ||
return ( | ||
<img ref='el'/> | ||
<img ref={el => this.el = el}/> | ||
); | ||
} | ||
} |
@@ -8,5 +8,5 @@ import React from 'react'; | ||
return ( | ||
<input ref='el'/> | ||
<input ref={el => this.el = el}/> | ||
); | ||
} | ||
} |
{ | ||
"name": "react-froala-wysiwyg", | ||
"version": "2.9.5", | ||
"version": "2.9.6", | ||
"description": "React component for Froala WYSIWYG HTML rich text editor.", | ||
@@ -27,3 +27,3 @@ "main": "index.js", | ||
"create-react-class": "^15.5.2", | ||
"froala-editor": "2.9.5" | ||
"froala-editor": "2.9.6" | ||
}, | ||
@@ -30,0 +30,0 @@ "devDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
55539
+ Addedfroala-editor@2.9.6(transitive)
- Removedfroala-editor@2.9.5(transitive)
Updatedfroala-editor@2.9.6