From a7dd173deaf95c78c16d646f07b5fcd424130465 Mon Sep 17 00:00:00 2001 From: Ian Storm Taylor Date: Mon, 11 Jul 2016 13:22:41 -0700 Subject: [PATCH] update docs --- docs/reference/components/editor.md | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/docs/reference/components/editor.md b/docs/reference/components/editor.md index 515adf5f5..0a7a7d818 100644 --- a/docs/reference/components/editor.md +++ b/docs/reference/components/editor.md @@ -5,7 +5,21 @@ The top-level React component that renders the Slate editor itself. ```js +``` + +The editor takes a `State` instance that contains it's content and selection, and an array of `plugins` that define its behavior. + +In addition to those two properties, the editor allows passing any of the properties that a plugin can define: + +```js + ``` -The editor takes a `State` instance that contains it's content and selection. +These properties are actually an implicit plugin defintion. Internally, they are grouped together and turned into a plugin that is given first priority in the plugin stack. -Most of the editor's other properties are actually an implicit plugin defintion. Internally they are grouped together and turned into a plugin that is given first priority in the plugin stack. #### Properties