react-froala-wysiwyg
Advanced tools
Comparing version 2.9.3 to 2.9.4
@@ -56,3 +56,3 @@ var webpack = require("webpack"); | ||
alias: { | ||
"react-froala-wysiwyg": '../../dist' | ||
"react-froala-wysiwyg": '../../dist/dist' | ||
}, | ||
@@ -59,0 +59,0 @@ modules: ['node_modules'] |
@@ -74,3 +74,7 @@ /* global $ */ | ||
this.$element = $(this.refs.el); | ||
if(this.props.model) { | ||
this.$element[0].innerHTML = this.props.model; | ||
} | ||
this.setContent(true); | ||
@@ -77,0 +81,0 @@ |
{ | ||
"name": "react-froala-wysiwyg", | ||
"version": "2.9.3", | ||
"version": "2.9.4", | ||
"description": "React component for Froala WYSIWYG HTML rich text editor.", | ||
@@ -50,5 +50,5 @@ "main": "index.js", | ||
"raw-loader": "^0.5.1", | ||
"react": "^15.0.0", | ||
"react": "^16.0.0", | ||
"react-addons-test-utils": "^15.0.0", | ||
"react-dom": "^15.0.0", | ||
"react-dom": "^16.0.0", | ||
"react-highlight": "^0.9.0", | ||
@@ -59,3 +59,3 @@ "sinon": "^1.17.4", | ||
"webpack": "^4.6.0", | ||
"webpack-cli": "^2.0.15", | ||
"webpack-cli": "^3.1.3", | ||
"webpack-dev-server": "^3.1.3" | ||
@@ -65,4 +65,4 @@ }, | ||
"build": "webpack-cli && webpack-cli -p", | ||
"demo": "cd demo && webpack-cli && ../node_modules/.bin/webpack-dev-server --port 4000 --content-base dist/", | ||
"prepublish": "npm run build && bash lib/copy_bundles.sh" | ||
"demo": "cd demo && webpack-cli && \"../node_modules/.bin/webpack-dev-server\" --port 4000 --content-base dist/", | ||
"prepublishOnly": "npm run build && bash lib/copy_bundles.sh" | ||
}, | ||
@@ -69,0 +69,0 @@ "repository": { |
@@ -322,2 +322,8 @@ # React JS Froala WYSIWYG Editor | ||
## Using type definition file | ||
`index.d.ts` file is the type definition file for this repository. It is placed inside lib folder.In order to use it in your code , use the following line: | ||
``` | ||
///<reference path= "index.d.ts" /> | ||
``` | ||
where path is the location of index.d.ts file. | ||
@@ -338,2 +344,7 @@ ## Displaying HTML | ||
## Usage with create-react-app | ||
In order to use froala editor with create-react-app, you need to include below lines in your code: | ||
import $ from 'jquery'; | ||
window.$ = $; | ||
## License | ||
@@ -340,0 +351,0 @@ |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
831
0
376
54701
35
1