All Projects β†’ draft-js-plugins β†’ Draft Js Plugins

draft-js-plugins / Draft Js Plugins

Licence: mit
React Plugin Architecture for Draft.js including Slack-Like Emojis, FB-Like Mentions and Stickers

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to Draft Js Plugins

ember-cli-mentionable
An ember addon for facebook style @mentions and #hashtags
Stars: ✭ 13 (-99.67%)
Mutual labels:  hashtags, mentions
react-tagify
πŸ“› Powerful Pure React Component For Hashtags and Mentions In Your React App
Stars: ✭ 24 (-99.39%)
Mutual labels:  hashtags, mentions
ngx-linkifyjs
Angular V8 wrapper for linkifyjs - library for finding links in plain text and converting them to HTML <a> tags via linkifyjs
Stars: ✭ 40 (-98.98%)
Mutual labels:  hashtags, mentions
react-native-twitter-textview
A <TextView/> component for React Native built on top of twitter-text linkification.
Stars: ✭ 71 (-98.19%)
Mutual labels:  hashtags
Eorg
new version: https://github.com/SoftMaple/Editor
Stars: ✭ 27 (-99.31%)
Mutual labels:  draft-js
rechord
Let's share your chord progressions!
Stars: ✭ 62 (-98.42%)
Mutual labels:  draft-js
React Native Draftjs Render
React Native render for draft.js model
Stars: ✭ 368 (-90.61%)
Mutual labels:  draft-js
BiocStickers
Stickers for some Bioconductor packages - feel free to contribute and/or modify.
Stars: ✭ 109 (-97.22%)
Mutual labels:  stickers
Whatsapp Bot
Whatsapp Bot - Node Js.
Stars: ✭ 271 (-93.08%)
Mutual labels:  stickers
docs-soap
Library to clean up the clipboard contents generated by google docs
Stars: ✭ 17 (-99.57%)
Mutual labels:  draft-js
draftjs-conductor
πŸ“βœ¨ Little Draft.js helpers to make rich text editors β€œjust work”
Stars: ✭ 39 (-99%)
Mutual labels:  draft-js
StickerLayout
sticker layout,ε›Ύη‰‡ηΌ©ζ”Ύζ‹–εŠ¨γ€‚εœ¨ε›Ύη‰‡δΈŠζ‰“ε›Ύζ ‡ε’Œζ–‡ε­—ζ ‡η­Ύ
Stars: ✭ 15 (-99.62%)
Mutual labels:  stickers
Xetaravel-Mentions
A package to parse @mentions from a text and mention the users with Laravel.
Stars: ✭ 26 (-99.34%)
Mutual labels:  mentions
rich-editor
A react editor component based on draftjs.
Stars: ✭ 15 (-99.62%)
Mutual labels:  draft-js
Stickerview
a sticker view for android application
Stars: ✭ 291 (-92.57%)
Mutual labels:  stickers
graphql-blog-client
πŸš€ React Apollo client for a GraphQL blog.
Stars: ✭ 15 (-99.62%)
Mutual labels:  draft-js
Photoeditor
A Photo Editor library with simple, easy support for image editing using paints,text,filters,emoji and Sticker like stories.
Stars: ✭ 3,105 (-20.75%)
Mutual labels:  stickers
tgskit
Toolkit for dealing with Telegram Stickers and Bodymovin/Lottie animations.
Stars: ✭ 45 (-98.85%)
Mutual labels:  stickers
planning
πŸ“… πŸ““ Plan the next HH.ex meet ups
Stars: ✭ 32 (-99.18%)
Mutual labels:  stickers
Zdstickerview
ZDStickerView is an Objective-C module for iOS and offers complete configurability, including movement, resizing, rotation and more, with one finger.
Stars: ✭ 368 (-90.61%)
Mutual labels:  stickers

DraftJS Plugins

Draft JS Plugins Logo

High quality plugins with great UX on top of DraftJS.

Build Status

Available Plugins (incl. Docs)

Built by the community

Live Example & Documentation

Checkout the website!

Usage

First, install the editor with npm:

$ npm install @draft-js-plugins/editor --save

Then import the editor somewhere in your code and you're ready to go!

import Editor from '@draft-js-plugins/editor';

Documentation

@draft-js-plugins/editor

Editor

An editor component accepting plugins. see source

Props Description Required
editorState see here *
onChange see here *
plugins an array of plugins
decorators an array of custom decorators
defaultKeyBindings bool
defaultBlockRenderMap bool
all other props accepted by the DraftJS Editor except decorator see here

Usage:

import React, { Component } from 'react';
import Editor from '@draft-js-plugins/editor';
import createHashtagPlugin from '@draft-js-plugins/hashtag';
import createLinkifyPlugin from '@draft-js-plugins/linkify';
import { EditorState } from 'draft-js';

const hashtagPlugin = createHashtagPlugin();
const linkifyPlugin = createLinkifyPlugin();

const plugins = [linkifyPlugin, hashtagPlugin];

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}
      />
    );
  }
}

How to write a Plugin

Feel free to copy any of the existing plugins as a starting point.In this repository you can also find a Guide on how to create a plugin, including a description of the supported features. In addition you can contact @nikgraf directly in case you need help or simply open a Github Issue!

Discussion and Support

Join the channel #draft-js-plugins after signing into the DraftJS Slack organization or check out our collection of frequently asked questions here: FAQ.

Development

Check out our Contribution Guide.

Learn about why Draft.js and how to use DraftJS Plugins

In this talk Nik Graf explained the ContentState structure of a Draft.js Editor as well as explained how to use plugins.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].