From c62f88688607b3d26b654d962cdb3afd4f96a98f Mon Sep 17 00:00:00 2001 From: Alberto Menendez Romero Date: Sun, 10 Jun 2018 00:22:49 -0300 Subject: [PATCH] Import AtomicBlockUtils --- package.json | 2 +- src/modifiers.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index fdf7b06..7c2d3b8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "draft-js-toolbox", - "version": "0.5.0", + "version": "0.5.1", "description": "Useful goodies for DraftJS", "keywords": [ "draft-js", diff --git a/src/modifiers.js b/src/modifiers.js index 1609c00..ceca804 100644 --- a/src/modifiers.js +++ b/src/modifiers.js @@ -1,4 +1,4 @@ -import { Modifier, SelectionState, EditorState } from 'draft-js'; +import { SelectionState, EditorState, Modifier, AtomicBlockUtils } from 'draft-js'; export const addBlock = (editorState, entityType, data = {}) => { const selectionState = editorState.getSelection();