New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@techstacker/tse-list-plugin

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@techstacker/tse-list-plugin

SlateJS list node plugin.

canary
latest
Source
npmnpm
Version
5.2.0-alpha.273b0e7e
Version published
Maintainers
2
Created
Source
Nossas logo
Nossas Cidades logo

@slate-editor/list-plugin

SlateJS list plugin.

npm package npm downloads

Installation

The @slate-editor/list-plugin is available as an npm package.

yarn add @slate-editor/list-plugin

Usage

Here is a quick example to get you started:

import React from 'react'
import { SlateEditor, SlateToolbar, SlateContent } from 'slate-editor'
import { ListPlugin, ListButtonBar } from '@slate-editor/list-plugin'

const plugins = [
  ListPlugin()
]

const SlateRichTextEditor = () => (
  <SlateEditor plugins={plugins}>
    <SlateToolbar>
      <ListButtonBar />
    </SlateToolbar>

    <SlateContent />
  </SlateEditor>
)

export default SlateRichTextEditor

Keyboard Shortcut

OSActionShortcut
Apple LogoUnordered List^ + shift + l
Apple LogoOrdered List^ + shift + n
Windows LogoUnordered Listalt + shift + l
Windows LogoOrdered Listalt + shift + n

API

NameDescription
ListNodeComponent that holds the html that will wrap the content with list style.
ListKeyboardShortcutKeyboard shortcut file that manipulates onKeyDown event inside SlateJS.
ListUtilsGeneric file that holds the util common functions.
ListButtonBarComponent that holds all action buttons to handle list behaviours.
UnorderedListButtonComponent that render ordered list button to handle its behaviour.
OrderedListButtonComponent that render unordered list button to handle its behaviour.

TODO

  • Make keyboard shortcut accepts customization

Keywords

slate

FAQs

Package last updated on 29 Oct 2018

Did you know?

Socket

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.

Install

Related posts