
Security News
Critical Security Vulnerability in React Server Components
React disclosed a CVSS 10.0 RCE in React Server Components and is advising users to upgrade affected packages and frameworks to patched versions now.
@alexkuz/draft-js-plugins
Advanced tools
High quality plugins with great UX on to of DraftJS.
Checkout the website!
First, install the editor with npm:
$ npm install draft-js-plugins-editor --save
and then import it somewhere in your code and you're ready to go!
import Editor from 'draft-js-plugins-editor';
An editor component accepting plugins.
| Props | Description | Required |
|---|---|---|
| editorState | see here | * |
| onChange | see here | * |
| plugins | an array of plugins | |
| all other props accepted by the DraftJS Editor | see here |
Usage:
import React, { Component } from 'react';
import Editor from 'draft-js-plugins-editor';
import createHashtagPlugin from 'draft-js-hashtag-plugin';
import createLinkifyPlugin from 'draft-js-linkify-plugin';
import { EditorState } from 'draft-js';
const hashtagPlugin = createHashtagPlugin();
const linkifyPlugin = createLinkifyPlugin();
const plugins = [
hashtagPlugin,
linkifyPlugin,
];
export default class UnicornEditor extends Component {
state = {
editorState: EditorState.createEmpty(),
};
onChange = (editorState) => {
this.setState({
editorState,
});
};
render() {
return (
<Editor
editorState={this.state.editorState}
onChange={this.onChange}
plugins={plugins}
spellCheck
readOnly={ this.state.readOnly }
ref="editor"
/>
);
}
}
createEditorStateWithTextFunction to creates an EditorState with some text.
Usage:
import { createEditorStateWithText } from 'draft-js-plugins-editor';
const editorState = createEditorStateWithText('Hello World!', plugins);
draft-js-sticker-plugindraft-js-hastag-plugindraft-js-linkify-pluginFeel free to copy any of the existing plugins as a starting point. Feel free to directly contact @nikgraf in case you need help or open a Github Issue!
More documentation is coming soon…
npm install
cd site
npm install
npm start
Join the channel #plugin-editor after signing into the DraftJS Slack organization!
MIT
FAQs
A Plugin Architecture on top of Draft.JS
We found that @alexkuz/draft-js-plugins 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
React disclosed a CVSS 10.0 RCE in React Server Components and is advising users to upgrade affected packages and frameworks to patched versions now.

Research
/Security News
We spotted a wave of auto-generated “elf-*” npm packages published every two minutes from new accounts, with simple malware variants and early takedowns underway.

Security News
TypeScript 6.0 will be the last JavaScript-based major release, as the project shifts to the TypeScript 7 native toolchain with major build speedups.