• Stars
    star
    275
  • Rank 149,796 (Top 3 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 8 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A DraftJS plugin for supporting Markdown syntax shortcuts

draft-js-markdown-shortcuts-plugin

Run tests Backers on Open Collective Sponsors on Open Collective npm Coverage Status

A DraftJS plugin for supporting Markdown syntax shortcuts

This plugin works with DraftJS Plugins wrapper component.

screen

View Demo

Usage

npm i --save draft-js-markdown-shortcuts-plugin

then import from your editor component

import createMarkdownShortcutsPlugin from 'draft-js-markdown-shortcuts-plugin';

Example

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);
    this.state = {
      editorState: EditorState.createEmpty(),
    };
  }

  onChange = editorState => {
    this.setState({
      editorState,
    });
  };

  render() {
    return <Editor editorState={this.state.editorState} onChange={this.onChange} plugins={plugins} />;
  }
}

License

MIT. See LICENSE

More Repositories

1

go-release.action

Automate publishing Go build artifacts for GitHub releases through GitHub Actions
Shell
94
star
2

ci2go

CI2Go is a @CircleCI client for iPhone, iPad, Apple Watch and Mac.
Swift
90
star
3

gist-codaplugin

Gist Plug-In for Coda 2
Objective-C
70
star
4

sketchplugin-swift-color

A Sketch Plugin for generating UIColor and NSColor initializer Swift code from fill color of selected layers.
59
star
5

go-amazon-product-advertising-api

Go Client Library for Amazon Product Advertising API
Go
57
star
6

rb-blink1

Ruby interface for blink(1)
C
50
star
7

middleman-blog-similar

An extension for middleman-blog that adds method to lookup similar article.
Ruby
44
star
8

chm2docset

A tool for converting Compiled HTML Help (.chm) file to Kapeli's Dash compatible Apple DocSet bundle
Go
30
star
9

jquery-selectorator

jQuery plugin that returns simplest selector of elements.
JavaScript
28
star
10

ts-dakoku

Slack ぼコマンドで TeamSpirit ăźæ‰“ćˆ»ă‚’ă—ăŸă™
Go
28
star
11

Playground-Bluetooth-Book

Swift Playground Book that deals with Core Bluetooth
Swift
26
star
12

AFQiitaClient

Qiita API を Cocoa ă§æ“ă‚‹ă‚Żăƒ©ă‚€ă‚ąăƒłăƒˆă§ă™
Objective-C
21
star
13

hubot-irkit

A Hubot script to control IRKit the hackable remote controller.
CoffeeScript
18
star
14

wiplock

Wiplock is a tiny webhook application that prevents mistakenly merging in progress pull requests
Go
16
star
15

markdown-codaplugin

Markdown Wiki Plug-In for Coda 2
C
15
star
16

hubot-cloudfront

A Hubot script to list and invalidate Amazon CloudFront distributions.
CoffeeScript
14
star
17

vue-payjp-checkout

PAY.JP Checkout Button component for Vue.js
TypeScript
14
star
18

mindstorms-nxt-playground-book

Swift
13
star
19

hubot-browserstack

A Hubot script to take screenshots with BrowserStack
CoffeeScript
13
star
20

PrettyJSON.codaplugin

Perl
13
star
21

evernote-codaplugin

Coda 2 Evernote Plugin
C
13
star
22

docker-rails-example

Example project to auto deploy Rails application
Ruby
12
star
23

color-hash.swift

Generates UIColor and NSColor from given string.
Swift
12
star
24

hubot-keybase-encrypt

A Hubot script that encrypts messages for Keybase users.
CoffeeScript
9
star
25

dotfiles

@ngs environment
Shell
9
star
26

wiringPi

A fork of Gordon's wiringPi
C
8
star
27

hubot-hotpepper

Searches restaurants from Hotpepper with Hubot.
CoffeeScript
8
star
28

github-notifications-crx

A Chrome Extension to check GitHub Notifications in toolbar icon.
CoffeeScript
8
star
29

go-google-email-audit-api

Go Client Library for G Suite Email Audit API
Go
8
star
30

nightwatch-mail-example

A example project for testing email delivery using Nightwatch, Mandrill and RequestBin.
JavaScript
8
star
31

sources.ngs.io

Blog Sources
HTML
7
star
32

AFGitHubClient

AFNetworking Client for the GitHub API V3
Objective-C
7
star
33

jquery-elementDiff

jQuery plugin that generates JavaScript code to arrange elements to be same.
JavaScript
7
star
34

qiita-notifications-crx

Qiita ăźăŠçŸ„ă‚‰ă›ă‚’ăƒă‚§ăƒƒă‚Żă™ă‚‹ Chrome æ©Ÿèƒœæ‹ĄćŒ”
CoffeeScript
6
star
35

hubot-qiita

A Hubot script to list and create Qiita items.
CoffeeScript
6
star
36

i18n-manage-api

Web API to Manage Angular App I18n file.
CoffeeScript
6
star
37

jSpreadSheet

Easily access Google Spreadsheet JSONP API without importing Google's jsapi and calling "google.load" method.
JavaScript
6
star
38

PrettyXML.codaplugin

Coda plugin for Pretty printing XML
Perl
5
star
39

hyperterm-tomorrow-night

JavaScript
5
star
40

Sphero.playgroundbook

Use iPad to Program Robots with Swift Playgrounds
Swift
5
star
41

onairlog-ios-legacy

FM ă§æ”Ÿé€ă•ă‚ŒăŸæ„œæ›Čă‚’æ€œçŽąă§ăă‚‹ă€ă‚·ăƒłăƒ—ăƒ«ăȘ iOS ケプăƒȘ。
Swift
5
star
42

hubot-jira-lotto

A Hubot script to pick assignee randomly for JIRA issues
CoffeeScript
5
star
43

extXMLRPC

Three20 extention for support XML-RPC requests / responses
Objective-C
4
star
44

hubpix

Drag, drop and commit pictures to GitHub
CoffeeScript
4
star
45

docker-radiko-recorder

Radio Recorder based on Ubuntu
Shell
4
star
46

xccoveralls

Command line tool for sending Xcode 9.3+ coverage information to Coveralls
Ruby
4
star
47

heroku-docker-nginx

nginx Docker Image for Heroku
4
star
48

gero

An Android framework inspired by Three20 the iOS framework
Java
4
star
49

docker-alpine-heroku-cli

Simple Docker Image for running Heroku CLI
Shell
3
star
50

docker-radiko-recorder-s3

Shell
3
star
51

MUIMessageCell

iOS Built-in Messages style table view cell
Objective-C
3
star
52

docker-serverspec-circleci-example

Example project to run Serverspec for Docker on CircleCI
Ruby
3
star
53

snippets-markdown-scrippet

Preview Markdown plugin for Snippets
Perl
3
star
54

line-buychat

LINE ボット ăšăźäŒšè©±ă§ Amazon æ€œçŽąăšèłŒć…„ă‚’ă™ă‚‹ă€èČ·ă„ç‰©ăƒăƒŁăƒƒăƒˆ
Go
3
star
55

puppet-kaleidoscope

Kaleidoscope Puppet Module for Boxen
Puppet
3
star
56

puppet-atom

Atom Puppet Module for Boxen
Shell
2
star
57

watering-pi

Watering with Raspberry Pi
Shell
2
star
58

hyperterm-tomorrow-night-eighties

JavaScript
2
star
59

konami-qr

コナミă‚čăƒăƒŒăƒ„ă‚Żăƒ©ăƒ–ăźäŒšć“ĄèšŒă‚’èĄšç€șă™ă‚‹ăźă«ă€æŻŽć›žăƒ­ă‚°ă‚€ăƒłă‚’æ±‚ă‚ă‚‰ă‚Œă‚‹ăźăŒç…©ă‚ă—ă„ăźă§ă€ăƒ­ă‚°ă‚€ăƒłă‹ă‚‰ QR ă‚łăƒŒăƒ‰èĄšç€șăŸă§è‡Ș拕挖した iOS ケプăƒȘ
Swift
2
star
60

snippets-posterous-scrippet

Snippets plugin for Posterous
Ruby
2
star
61

coda2rc

~/Library/Application Support/Coda 2
Perl
2
star
62

arduino-codaplugin

Coda 2 Plug-In for Arduino
Objective-C
2
star
63

AFMandrill

Cocoa Interface for Mandrill
Objective-C
2
star
64

p5-android-drawable

Perl interface for creating Android Drawable XMLs
Perl
2
star
65

terraform-cloudflare-github-org

CloudFlare Terraform module for setup GitHub organization verification.
HCL
2
star
66

addressbook-plist-writer

Writes AddressBook to Binary plist file
Objective-C
2
star
67

hubot-suncalc

A Hubot script that replies sunrise and sunset of the day for given location.
CoffeeScript
2
star
68

Objective-C.codaplugin

Objective-C Tools.codaplugin
Perl
2
star
69

blink1-formatter

blink(1) RSpec formatter
Ruby
2
star
70

google-authenticator

Google Authenticator
Objective-C
2
star
71

libusb-xcode

libusb Xcode project
C
2
star
72

nanoc-heroku-template

My nanoc project template for Heroku
Ruby
2
star
73

availabilitybot

Tweets Parts Availability in Apple Stores in Japan
Go
2
star
74

codaplugins

Coda Plug-Ins
Shell
2
star
75

dailymile-ical

Ruby
2
star
76

fastlane-plugin-coveralls

Ruby
2
star
77

imgcache

Internet Image SSL Proxy
1
star
78

docker-force-com

A Docker Image for CI/CD Salesforce Apex projects.
Java
1
star
79

jws-proxy

CORS Proxy Server for Jalan WebServices
Go
1
star
80

creole-codaplugin

Creole Wiki Plug-In for Coda 2
C
1
star
81

Compiler-Closure

Perl proxy for Google's Closure compiler
Perl
1
star
82

LEDCap

A LilyPad Project to blink sewed LEDs on a cap.
Arduino
1
star
83

onairlog-api

Go
1
star
84

headfirst-arduino

Arduino
1
star
85

go-onepif

Go
1
star
86

lleval-safarix

Safari extention for eval selected text from contextual menu.
JavaScript
1
star
87

SimpleTemplate.js

SimpleTemplate js class
1
star
88

Facebook-Graph-CustomAction

Perl
1
star
89

qrcode-safarix

Display QR code of current URL in the window.
1
star
90

tcx

1
star
91

rabot

A chatbot who deals with docker.sock
Go
1
star
92

docker-heroku-nodejs-ci

Node.js image for CircleCI 2.0 with Heroku CLI
1
star
93

terraform-cloudflare-office365

CloudFlare Terraform module for setup Office 365.
HCL
1
star
94

apex-circleci-example

Example project of Salesforce Apex test on CircleCI
Apex
1
star
95

docker-mysql-aurora-compatible

WIP) Docker Container compatible with Amazon Aurora MySQL Engine
1
star
96

ngs.github.com

gh-page
JavaScript
1
star
97

nyphill-score-dl

The tool for downloading NY Philharmonic score archives in PDF.
Ruby
1
star
98

puppet-adobe_creative_cloud

Adobe Creative Cloud Plugin Puppet Module for Boxen
Shell
1
star
99

netbaka2epub

ă€Žăƒăƒƒăƒˆè”·æ„­ïŒ ă‚ăźăƒă‚«ă«ă‚„ă‚‰ă›ăŠăżă‚ˆă†ă€ăźă‚”ă‚€ăƒˆă‚’ epub ă«äżć­˜ă—ăŸă™ă€‚
Perl
1
star
100

p5-finance-bank-jp-mizuho

Finance::Bank::JP::Mizuho - Perl interface for check Mizuho bank balances
Perl
1
star