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
jodit-react
Jodit is awesome and usefully wysiwyg editor with filebrowser
jodit
Jodit is an awesome and useful wysiwyg editor with filebrowser
jodit-pro-react
Jodit PRO is awesome and usefully wysiwyg editor with filebrowser
jodit-angular
> Hey. Due to the fact that I do not use Angular in my projects, I cannot fix plugin errors in a timely manner. If you want the plugin to develop, send PR or better become a contributor
npm install jodit-react-ts
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
3 Stars
23 Commits
1 Forks
3 Watching
2 Branches
1 Contributors
Updated on 25 Aug 2021
TypeScript (82.88%)
HTML (17.12%)
Cumulative downloads
Total Downloads
Last day
8.1%
147
Compared to previous day
Last week
5.1%
776
Compared to previous week
Last month
20.7%
2,967
Compared to previous month
Last year
27.4%
44,351
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
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no SAST tool detected
Details
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
70 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
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