
Security News
/Research
Fake Corepack Site Distributes Infostealer and Proxyware to Developers
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.
fc-mdeditor
Advanced tools
简单的 markdown 编辑器,类似于 github 的 issues 评论模块。
npm i fc-mdeditor
import MarkdownEditor, { marked } from '../src/index';
const Demo = React.createClass({
render() {
return (
<div >
<MarkdownEditor ref="markdownEditor" />
<div dangerouslySetInnerHTML={{
// 渲染html字符串需要通过这样的方式(当然我们也默认支持jquery,可以用jquery的方式渲染)
__html: marked(this.refs.markdownEditor.getValue())
}} />
</div>
);
}
});
| 参数 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| value | 初始值 | String | '' |
| placeholder | 占位符 | String | 'Leave a comment' |
| uploadEnabled | 是否启用上传功能 | Boolean | false |
| uploadApi | 上传接口 | String | '/upload' |
| fileUrlPath | res 中提取 fileUrl 数据的路径 | String | 'url' |
| fileSize | 上传文件大小上限(byte) | Number | 10485760 |
| fileTypes | 上传文件类型限制 | Array | ['PNG', 'GIF', 'JPG', 'DOCX', 'PPTX', 'XLSX', 'TXT', 'PDF', 'ZIP', 'MD', 'JSON'] |
MarkdownEditor.Marked
在组件静态方法上挂载了 Marked,用来解析 md 数据。
建议数据库存 md 数据,不要存解析后的 html 数据。
FAQs
markedown editor
The npm package fc-mdeditor receives a total of 1 weekly downloads. As such, fc-mdeditor popularity was classified as not popular.
We found that fc-mdeditor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
/Research
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.

Research
/Security News
A large-scale campaign abused GitHub Actions in compromised repositories to exploit CVE-2026-41940 in cPanel and WHM and steal server credentials.

Security News
Five frontier LLMs generated the same nonexistent package names, leaving 53 available for potential slopsquatting across PyPI and npm.