
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-vditor
Advanced tools
Vditor Components for React!
About Vditor, see Vanessa219/vditor
npm install vditor react-vditor
# or
yarn add vditor react-vditor
# or
pnpm install vditor react-vditor
import React, { FC, useState, useEffect } from "react"
import Vditor from "vditor"
import { VditorEditor } from "react-vditor"
const TestVditorEditor: FC = () => {
const [vditor, setVditor] = useState<Vditor>()
useEffect(() => {
if (!!vditor) {
console.log(`Update Default Vditor:`)
console.log(vditor)
}
}, [vditor])
return <VditorEditor keyID="base-editor" bindVditor={setVditor} />
}
export default TestVditorEditor
see demo for more
react-vditor is a wrapper of Vditor. Due to the reason that the Vditor is independent of frameworks, and we always need to initialize the Vditor in the lifecycle! Repeated operations are always boring! Thus, react-vditor provides some components for React that cover commonly used Vditor editors, makes it easy to use in React.
What's more, the react-vditor is well compatible with Vditor and provides some custom props for better development experience.
| components | description |
|---|---|
<VditorEditor /> | Basic Vditor editor |
<VditorIREditor /> | Vditor IR editor (Syntax Sugar) |
<VditorSVEditor /> | Vditor SV editor (Syntax Sugar) |
<VditorWYSIWYGEditor /> | Vditor WYSIWYG editor (Syntax Sugar) |
<VditorPreview /> | Vditor markdown preview component |
| props | type | required | description |
|---|---|---|---|
| keyID | string | √ | ID of editor |
| options | IOptions | × | Vditor options |
| bindVditor | (vditor: Vditor): void | × | Bind Vditor instance to state |
| props | type | required | description |
|---|---|---|---|
| markdown | string | √ | markdown content |
| options | IPreviewOptions | × | Vditor preview options |
| customClass | string | × | custom preview component class |
npm install -g pnpm
pnpm install
# for dev
pnpm dev
# for build
pnpm build
cd __test__
pnpm install
pnpm link ..
MIT © Herbert He
FAQs
Vditor in React
The npm package react-vditor receives a total of 6 weekly downloads. As such, react-vditor popularity was classified as not popular.
We found that react-vditor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.