migrate to new slate packages

This commit is contained in:
Shawn Erquhart 2017-09-28 13:07:38 -04:00
parent 2beb7d256b
commit a5c1bb2bff
3 changed files with 6 additions and 2 deletions

View File

@ -160,6 +160,8 @@
"slate": "^0.24.0",
"slate-edit-list": "^0.8.0",
"slate-edit-table": "^0.11.0",
"slate-plain-serializer": "^0.1.10",
"slate-react": "^0.1.10",
"slate-soft-break": "^0.4.0",
"slug": "^0.9.1",
"toml-j0.4": "^1.1.1",

View File

@ -1,6 +1,7 @@
import PropTypes from 'prop-types';
import React from 'react';
import { Editor as Slate, Plain } from 'slate';
import { Editor as Slate } from 'slate-react';
import Plain from 'slate-plain-serializer';
import { debounce } from 'lodash';
import Toolbar from '../Toolbar/Toolbar';
import { Sticky } from '../../../../UI/Sticky/Sticky';

View File

@ -1,7 +1,8 @@
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { get, isEmpty, debounce } from 'lodash';
import { Editor as Slate, State, Document, Block, Text } from 'slate';
import { State, Document, Block, Text } from 'slate';
import { Editor as Slate } from 'slate-react';
import { slateToMarkdown, markdownToSlate, htmlToSlate } from '../../serializers';
import registry from '../../../../../lib/registry';
import Toolbar from '../Toolbar/Toolbar';