diff --git a/docs/reference/components/editor.md b/docs/reference/components/editor.md index 6993e2923..c271a17e1 100644 --- a/docs/reference/components/editor.md +++ b/docs/reference/components/editor.md @@ -9,6 +9,7 @@ The top-level React component that renders the Slate editor itself. - [Properties](#properties) - [`onChange`](#onchange-function) + - [`placeholder`](#placeholder-text-or-element) - [`plugins`](#plugins-array) - [`state`](#state-state) - [Plugin-like Properties](#plugin-like-properties) @@ -37,6 +38,10 @@ The top-level React component that renders the Slate editor itself. A change handler that will be called with the newly-changed editor `state`. You should usually pass the newly changed `state` back into the editor through its `state` property. This hook allows you to add persistence logic to your editor. +#### `placeholder: Text or Element` + +A placeholder string (or React element) that will be rendered as the default block type's placeholder. + #### `plugins: Array` An array of [`Plugins`](../plugins) that define the editor's behavior.