New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

jodit-react

Package Overview
Dependencies
Maintainers
1
Versions
234
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jodit-react - npm Package Compare versions

Comparing version 1.0.33 to 1.0.35

6

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc