Skip to content

halumz/react-slate-customized

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-slate-customized

NPM version Linux Build Status

A Slate example to improvise the editor using react and Slate

Demo Link

Features

An enhanced standard rich text using Slate

  • Images:

    • Image linking from url
    • Image upload with button drop desktop using dropzone
  • Lists: Ordered and unordered lists with tab support using slate-edit-list

    • Pressing Enter insert a new list item
    • Pressing Shift+Enter split the block in the list item
    • Pressing Tab increase the depth of the item (creates a sub-list)
    • Pressing Shift+Tab decrease the depth of the item
    • Pressing Delete (OSX) or Backspace at the start, remove the list item (or the list)
  • Save/Cancel functionality

    • Save - stores new editor content in localstorage included image path
    • Cancel - restores to the old saved content from localstorage
  • Number of top-level block is restricted in config->MAX_LENGTH file

  • Number of maximum tab count is restricted in config->MAX_TAB_COUNT file