Skip to content

Commit 3f1a21a

Browse files
committed
Fix docs for divider plugin
1 parent b09d34e commit 3f1a21a

File tree

3 files changed

+7
-7
lines changed
  • docs/client/components/pages/Divider/DividerWithSideToolbarEditor
  • stories/Divider/DividerWithSideToolbarEditor

3 files changed

+7
-7
lines changed

.eslintrc

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"parser": "babel-eslint",
3-
"plugins": [ "mocha" ],
3+
"plugins": ["mocha"],
44
"env": {
55
"browser": true,
66
"mocha": true,
@@ -23,7 +23,7 @@
2323
"import/no-webpack-loader-syntax": 0,
2424
"import/extensions": 0,
2525
"jsx-a11y/img-has-alt": 0,
26-
"react/require-default-props": 0,
26+
"react/require-default-props": 0
2727
},
2828
"settings": {
2929
"import/core-modules": [
@@ -67,7 +67,9 @@
6767
"draft-js-undo-plugin",
6868
"draft-js-undo-plugin/lib/plugin.css",
6969
"draft-js-video-plugin",
70-
"draft-js-video-plugin/lib/plugin.css"
70+
"draft-js-video-plugin/lib/plugin.css",
71+
"draft-js-divider-plugin",
72+
"draft-js-divider-plugin/lib/plugin.css"
7173
]
7274
}
7375
}

docs/client/components/pages/Divider/DividerWithSideToolbarEditor/index.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { convertFromRaw, EditorState } from 'draft-js';
44
import Editor, { composeDecorators } from 'draft-js-plugins-editor';
55
import createFocusPlugin from 'draft-js-focus-plugin';
66
import createSideToolbarPlugin from 'draft-js-side-toolbar-plugin';
7-
// eslint-disable-next-line
87
import createDividerPlugin from 'draft-js-divider-plugin';
98
// eslint-disable-next-line
109
import BlockTypeSelect from 'draft-js-side-toolbar-plugin/components/BlockTypeSelect';
@@ -46,7 +45,7 @@ const initialState = {
4645
{
4746
key: '9gm3s',
4847
text:
49-
'This is a simple example for divider plugin. Click on the block to focus on it.',
48+
'This is a simple example for divider plugin. Click side toolbar divider button.',
5049
type: 'unstyled',
5150
depth: 0,
5251
inlineStyleRanges: [],

stories/Divider/DividerWithSideToolbarEditor/index.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { convertFromRaw, EditorState } from 'draft-js';
44
import Editor, { composeDecorators } from 'draft-js-plugins-editor';
55
import createFocusPlugin from 'draft-js-focus-plugin';
66
import createSideToolbarPlugin from 'draft-js-side-toolbar-plugin';
7-
// eslint-disable-next-line
87
import createDividerPlugin from 'draft-js-divider-plugin';
98
// eslint-disable-next-line
109
import BlockTypeSelect from 'draft-js-side-toolbar-plugin/components/BlockTypeSelect';
@@ -46,7 +45,7 @@ const initialState = {
4645
{
4746
key: '9gm3s',
4847
text:
49-
'This is a simple example for divider plugin. Click on the block to focus on it.',
48+
'This is a simple example for divider plugin. Click side toolbar divider button.',
5049
type: 'unstyled',
5150
depth: 0,
5251
inlineStyleRanges: [],

0 commit comments

Comments
 (0)