Francesco Agnoletto
2018-11-01 00:23:24 +01:00
parent d42a3e4e16
commit edabd802ee
2 changed files with 3 additions and 4 deletions
+3 -2
View File
@@ -5,9 +5,10 @@
// Jan Löbel <https://github.com/JanLoebel>
// Patrick Sachs <https://github.com/PatrickSachs>
// Brandon Shelton <https://github.com/YangusKhan>
// Francesco Agnoletto <https://github.com/Kornil>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import { Mark, Node, Block, Change, Schema, Value, Stack } from 'slate';
import { Mark, Node, Block, Inline, Change, Schema, Value, Stack } from 'slate';
import * as Immutable from 'immutable';
import * as React from 'react';
@@ -33,7 +34,7 @@ export interface RenderNodeProps {
editor: Editor;
isSelected: boolean;
key: string;
node: Node;
node: Block | Inline;
parent: Node;
}
-2
View File
@@ -11,8 +11,6 @@ class MyPlugin implements Plugin {
return <div id="slate-block-test"/>;
case "inline":
return <span id="slate-inline-test">Hello world</span>;
case "text":
return <p id="slate-text-test">Hello world</p>;
default:
return undefined;
}