Gathering detailed insights and metrics for jodit-react-ts
Gathering detailed insights and metrics for jodit-react-ts
Gathering detailed insights and metrics for jodit-react-ts
Gathering detailed insights and metrics for jodit-react-ts
npm install jodit-react-ts
Typescript
Module System
Min. Node Version
Node Version
NPM Version
TypeScript (82.88%)
HTML (17.12%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
4 Stars
23 Commits
1 Forks
2 Watchers
2 Branches
1 Contributors
Updated on Dec 27, 2024
Latest Version
0.9.0
Package Id
jodit-react-ts@0.9.0
Unpacked Size
16.44 kB
Size
4.87 kB
File Count
12
NPM Version
6.14.4
Node Version
12.18.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
1
20
A React wrapper for Jodit that works.
1npm install jodit-react-ts jodit
1import * as React from 'react'; 2import JoditReact from "jodit-react-ts"; 3import 'jodit/build/jodit.min.css'; 4 5const App = () => { 6 const [value, setValue] = React.useState<string>(); 7 8 return ( 9 <> 10 <JoditReact onChange={(content) => setValue(content)} defaultValue="Hi" /> 11 {value} 12 </> 13 ); 14};
1import * as React from 'react'; 2import 'jodit/build/jodit.min.css'; 3 4const JoditReact = React.lazy(() => { 5 return import('jodit-react-ts'); 6}); 7 8const MyEditorWrapper = () => { 9 const isSSR = typeof window === 'undefined'; 10 const [value, setValue] = React.useState<string>(); 11 12 return ( 13 <div> 14 {!isSSR && ( 15 <React.Suspense fallback={<div>Loading</div>}> 16 <JoditReact onChange={(content) => setValue(content)} defaultValue="Hi" /> 17 </React.Suspense> 18 )} 19 </div> 20 ); 21};
1import * as React from 'react'; 2import JoditReact from "jodit-react-ts"; 3import 'jodit/build/jodit.min.css'; 4 5/** 6 * This needs to be defined outside the scope of our wrapper otherwise will cause multiple re-renders 7 **/ 8 9const config = { 10 preset: 'inline' 11}; 12 13const App = () => { 14 const [value, setValue] = React.useState<string>(); 15 16 return ( 17 <> 18 <JoditReact onChange={(content) => setValue(content)} defaultValue="Hi" config={config} /> 19 {value} 20 </> 21 ); 22};
Property | Type | Required | Description |
---|---|---|---|
onChange | (content: string) => void | Yes | Callback to update a value state to keep track of the editor's content. |
config | IJodit["options"] | No | Jodit configuration object. |
defaultValue | string | no | Default content to be rendered on the editor. |
Please open an issue for support.
Please contribute using Github Flow. Create a branch, add commits, and open a pull request.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/23 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
77 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More