P E N C I L
Login
Slatejs : makes change

Keep reference to editor

ref=editor => {this.editor = editor}
<Editor ref={this.ref}>

To make a change

editor.change(change => change.setBlocks("bulleted-list");

Standard actions

editor.setBlocks(block_type)

Has block:

 hasBlock = type => {
    let blocks = editor.value.blocks;
    return blocks.size > 0 && blocks.some(node => node.type == type)
  }

Get value

editor.value

Commands

editor.unwrapBlock("block_type")