mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-21 14:41:23 +02:00
add placeholder property to editor reference
This commit is contained in:
@@ -9,6 +9,7 @@ The top-level React component that renders the Slate editor itself.
|
|||||||
|
|
||||||
- [Properties](#properties)
|
- [Properties](#properties)
|
||||||
- [`onChange`](#onchange-function)
|
- [`onChange`](#onchange-function)
|
||||||
|
- [`placeholder`](#placeholder-text-or-element)
|
||||||
- [`plugins`](#plugins-array)
|
- [`plugins`](#plugins-array)
|
||||||
- [`state`](#state-state)
|
- [`state`](#state-state)
|
||||||
- [Plugin-like Properties](#plugin-like-properties)
|
- [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.
|
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`
|
#### `plugins: Array`
|
||||||
|
|
||||||
An array of [`Plugins`](../plugins) that define the editor's behavior.
|
An array of [`Plugins`](../plugins) that define the editor's behavior.
|
||||||
|
Reference in New Issue
Block a user