All Projects → ngs → Draft Js Markdown Shortcuts Plugin

ngs / Draft Js Markdown Shortcuts Plugin

Licence: mit
A DraftJS plugin for supporting Markdown syntax shortcuts

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Draft Js Markdown Shortcuts Plugin

Vscode Paste Image
paste image from clipboard to markdown/asciidoc directly!
Stars: ✭ 236 (-6.35%)
Mutual labels:  markdown
Markdownlivepreview
A Sublime Text 3 plugin to preview your markdown as you type
Stars: ✭ 245 (-2.78%)
Mutual labels:  markdown
Markdown Pdf
Convert markdown to pdf, png or jpeg on the fly in Atom
Stars: ✭ 250 (-0.79%)
Mutual labels:  markdown
Fullstackpython.com
Full Stack Python source with Pelican, Bootstrap and Markdown.
Stars: ✭ 2,667 (+958.33%)
Mutual labels:  markdown
Gatsby Remark Embedder
Gatsby Remark plugin to embed well known services by their URL.
Stars: ✭ 245 (-2.78%)
Mutual labels:  markdown
Osu Wiki
home of the osu! wiki
Stars: ✭ 246 (-2.38%)
Mutual labels:  markdown
Docfx
Tools for building and publishing API documentation for .NET projects
Stars: ✭ 2,873 (+1040.08%)
Mutual labels:  markdown
Pl Docs
Programming Language Documentations
Stars: ✭ 251 (-0.4%)
Mutual labels:  markdown
React Text Selection Popover
Selection based Text UI made easy
Stars: ✭ 245 (-2.78%)
Mutual labels:  draft-js
Clrs
📚 Solutions to Introduction to Algorithms Third Edition
Stars: ✭ 3,230 (+1181.75%)
Mutual labels:  markdown
Markup It
JavaScript library to parse and serialize markup content (Markdown and HTML)
Stars: ✭ 242 (-3.97%)
Mutual labels:  markdown
Eslint Plugin Markdown
Lint JavaScript code blocks in Markdown documents
Stars: ✭ 242 (-3.97%)
Mutual labels:  markdown
Pine
A modern, native macOS markdown editor
Stars: ✭ 2,818 (+1018.25%)
Mutual labels:  markdown
Adr Tools
Command-line tools for working with Architecture Decision Records
Stars: ✭ 3,073 (+1119.44%)
Mutual labels:  markdown
Csvtomarkdowntable
Simple JavaScript/Node.js CSV to Markdown Table Converter
Stars: ✭ 249 (-1.19%)
Mutual labels:  markdown
Webdevstudyresources
[Resource List] Courses and info I've found most helpful
Stars: ✭ 238 (-5.56%)
Mutual labels:  markdown
Toonote
小兔笔记:Markdown 内置数据 跨平台 加密存储
Stars: ✭ 247 (-1.98%)
Mutual labels:  markdown
Gitdocs
Easy to use, SEO-friendly, beautiful documentation that lives in your git repo.
Stars: ✭ 252 (+0%)
Mutual labels:  markdown
Zotero Mdnotes
A Zotero plugin to export item metadata and notes as markdown files
Stars: ✭ 243 (-3.57%)
Mutual labels:  markdown
Markdown Cheatsheet
Markdown Cheatsheet for Github Readme.md
Stars: ✭ 3,316 (+1215.87%)
Mutual labels:  markdown

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

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].