globocom / megadraft

Megadraft is a Rich Text editor built on top of Facebook's Draft.JS featuring a nice default base of components and extensibility

Home Page:http://megadraft.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add onAction fn to listen to reorder blocks events

lousander opened this issue · comments

Adding the onAction function to move-control buttons responsible for swapping blocks up and down.

Add two new action types:

  • BLOCK_SWAP_UP
  • BLOCK_SWAP_DOWN