Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
draft-js-markdown-shortcuts-plugin
Advanced tools
A DraftJS plugin for supporting Markdown syntax shortcuts
A DraftJS plugin for supporting Markdown syntax shortcuts
This plugin works with DraftJS Plugins wrapper component.
npm i --save draft-js-markdown-shortcuts-plugin
then import from your editor component
import createMarkdownShortcutsPlugin from 'draft-js-markdown-shortcuts-plugin';
import React, { Component } from 'react';
import Editor from 'draft-js-plugins-editor';
import createMarkdownShortcutsPlugin from 'draft-js-markdown-shortcuts-plugin';
import { EditorState } from 'draft-js';
const plugins = [createMarkdownShortcutsPlugin()];
export default class DemoEditor extends Component {
constructor(props) {
super(props);
state = {
editorState: EditorState.createEmpty(),
};
}
onChange = editorState => {
this.setState({
editorState,
});
};
render() {
return <Editor editorState={this.state.editorState} onChange={this.onChange} plugins={plugins} />;
}
}
MIT. See LICENSE
FAQs
A DraftJS plugin for supporting Markdown syntax shortcuts
The npm package draft-js-markdown-shortcuts-plugin receives a total of 1,013 weekly downloads. As such, draft-js-markdown-shortcuts-plugin popularity was classified as popular.
We found that draft-js-markdown-shortcuts-plugin 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
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.