jodit-react
Advanced tools
Comparing version 1.0.33 to 1.0.35
{ | ||
"name": "jodit-react", | ||
"version": "1.0.33", | ||
"version": "1.0.35", | ||
"description": "Jodit is awesome and usefully wysiwyg editor with filebrowser", | ||
@@ -19,4 +19,4 @@ "main": "build/jodit-react.js", | ||
"dependencies": { | ||
"@types/react": "^16.9.16", | ||
"jodit": "^3.3.2" | ||
"@types/react": "^16.9.17", | ||
"jodit": "^3.3.14" | ||
}, | ||
@@ -23,0 +23,0 @@ "peerDependencies": { |
@@ -36,6 +36,6 @@ # React Jodit WYSIWYG Editor | ||
```jsx | ||
import React, {useState} from 'react'; | ||
import React, {useState, useRef} from 'react'; | ||
import JoditEditor from "jodit-react"; | ||
cosnt Example = ({}) => { | ||
const Example = ({}) => { | ||
const editor = useRef(null) | ||
@@ -55,3 +55,3 @@ const [content, setContent] = useState('') | ||
onBlur={newContent => setContent(newContent)} // preferred to use only this option to update the content for performance reasons | ||
onChange={newContent => setContent(newContent)} | ||
onChange={newContent => {}} | ||
/> | ||
@@ -58,0 +58,0 @@ ); |
@@ -6,3 +6,3 @@ import React, {useEffect, useRef, forwardRef, useLayoutEffect} from 'react' | ||
const JoditEditor = forwardRef(({value, config, onChange, onBlur, tabIndex}, ref) => { | ||
const JoditEditor = forwardRef(({value, config, onChange, onBlur, tabIndex, name}, ref) => { | ||
const textArea = useRef(null); | ||
@@ -48,3 +48,3 @@ | ||
return <textarea ref={textArea}></textarea> | ||
return <textarea ref={textArea} name={name}></textarea> | ||
}); | ||
@@ -51,0 +51,0 @@ |
Sorry, the diff of this file is too big to display
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
269017
Updated@types/react@^16.9.17
Updatedjodit@^3.3.14