Gathering detailed insights and metrics for jodit-react
Gathering detailed insights and metrics for jodit-react
Gathering detailed insights and metrics for jodit-react
Gathering detailed insights and metrics for jodit-react
react-jodit-editor
React WYSIWYG Editor Which Uses Jodit & Jodit-React In A Simplified Component
jodit-react-ts
React wrapper for Jodit. Fully written in Typescript.
jodit
Jodit is an awesome and useful wysiwyg editor with filebrowser
jodit-pro-react
Jodit PRO is awesome and usefully wysiwyg editor with filebrowser
npm install jodit-react
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
370 Stars
376 Commits
121 Forks
9 Watching
3 Branches
8 Contributors
Updated on 27 Nov 2024
Minified
Minified + Gzipped
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
1.7%
10,418
Compared to previous day
Last week
4.2%
55,924
Compared to previous week
Last month
9.5%
230,037
Compared to previous month
Last year
53.6%
2,240,171
Compared to previous year
1
26
React wrapper for Jodit
Jodit React PRO it is an extended version of Jodit React with the same API, but with a lot more features.
1npm install jodit-react --save
1npm update jodit-react
1npm install --dev 2npm run demo
and open
http://localhost:4000/
1import React, { useState, useRef, useMemo } from 'react'; 2import JoditEditor from 'jodit-react'; 3 4const Example = ({ placeholder }) => { 5 const editor = useRef(null); 6 const [content, setContent] = useState(''); 7 8 const config = useMemo(() => ({ 9 readonly: false, // all options from https://xdsoft.net/jodit/docs/, 10 placeholder: placeholder || 'Start typings...' 11 }), 12 [placeholder] 13 ); 14 15 return ( 16 <JoditEditor 17 ref={editor} 18 value={content} 19 config={config} 20 tabIndex={1} // tabIndex of textarea 21 onBlur={newContent => setContent(newContent)} // preferred to use only this option to update the content for performance reasons 22 onChange={newContent => {}} 23 /> 24 ); 25};
You can use all Jodit features and write your own plugin for example.
1import JoditEditor, { Jodit } from 'jodit-react'; 2 3/** 4 * @param {Jodit} jodit 5 */ 6function preparePaste(jodit) { 7 jodit.e.on( 8 'paste', 9 e => { 10 if (confirm('Change pasted content?')) { 11 jodit.e.stopPropagation('paste'); 12 jodit.s.insertHTML( 13 Jodit.modules.Helpers.getDataTransfer(e) 14 .getData(Jodit.constants.TEXT_HTML) 15 .replace(/a/g, 'b') 16 ); 17 return false; 18 } 19 }, 20 { top: true } 21 ); 22} 23Jodit.plugins.add('preparePaste', preparePaste); 24 25//... 26return <JoditEditor />;
You can see how to write plugins in the documentation or on the stand
This package is available under MIT
License.
No vulnerabilities found.
Reason
security policy file detected
Details
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
10 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 8
Reason
dependency not pinned by hash detected -- score normalized to 4
Details
Reason
Found 0/27 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
16 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
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