We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d4eda3 commit 018848cCopy full SHA for 018848c
README.md
@@ -37,9 +37,20 @@ import { createEmpty } from 'draft-js-plugin-editor';
37
const editorState = createEmpty(plugins);
38
```
39
40
-#### createWithContent (coming soon …)
+#### createWithText
41
42
-Function to creates an EditorState based on leveraging the decorators of the provided plugins.
+Function to creates an EditorState with some text.
43
+
44
+Usage:
45
+```
46
+import { createWithText } from 'draft-js-plugin-editor';
47
48
+const editorState = createWithText('Hello World!', plugins);
49
50
51
+#### createWithContent
52
53
+Function to creates an EditorState with provided pre-used data.
54
55
Usage:
56
0 commit comments