mirror of
https://github.com/codex-team/editor.js
synced 2024-06-10 09:52:36 +02:00
docs: replace holderId config by holder (#2525)
* docs: replace holderId by holder * docs: replace holderId by holder
This commit is contained in:
parent
ee188bfe5d
commit
92ccfc5317
|
@ -69,7 +69,7 @@ Check [Editor.js's community](https://github.com/editor-js/) to see Tools exampl
|
||||||
## Create Editor instance
|
## Create Editor instance
|
||||||
|
|
||||||
Create an instance of Editor.js and pass [Configuration Object](../src/types-internal/editor-config.ts).
|
Create an instance of Editor.js and pass [Configuration Object](../src/types-internal/editor-config.ts).
|
||||||
At least the `holderId` option is required.
|
At least the `holder` option is required.
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<div id="editorjs"></div>
|
<div id="editorjs"></div>
|
||||||
|
@ -92,7 +92,7 @@ var editor = new EditorJS({
|
||||||
/**
|
/**
|
||||||
* Create a holder for the Editor and pass its ID
|
* Create a holder for the Editor and pass its ID
|
||||||
*/
|
*/
|
||||||
holderId : 'editorjs',
|
holder : 'editorjs',
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Available Tools list.
|
* Available Tools list.
|
||||||
|
|
|
@ -70,7 +70,7 @@ to the `tools` property of Editor Config.
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
var editor = new EditorJS({
|
var editor = new EditorJS({
|
||||||
holderId : 'editorjs',
|
holder : 'editorjs',
|
||||||
tools: {
|
tools: {
|
||||||
text: {
|
text: {
|
||||||
class: Text,
|
class: Text,
|
||||||
|
|
Loading…
Reference in a new issue