You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@
6
6
7
7
ReactPage is a smart, extensible and modern editor ("WYSIWYG") for the web written in React. If you are fed up with the limitations of `contenteditable`, you are in the right place.
[You should see something like this now (click for the demo)](//demo/simple)
29
28
@@ -35,10 +34,6 @@ Simply provide a `readOnly={true}` prop to your editor.
35
34
36
35
We won't load any UI related code unless readOnly changes to `false`. In this case, the ui will be lazy loaded if your bundler supports that (e.g. webpack)
Notice: `yourCustomNamespace` and `myCustomPlugin` can be named arbitrary. Typescript users will find the existing type definition on def.plugins usefull to see which plugins do exist.
126
122
127
-
128
123
### Create your own custom plugin
129
124
130
125
If you want to create your own slate plugin, we provide a bunch of factory functions to help you with that:
@@ -137,11 +132,8 @@ If you want to create your own slate plugin, we provide a bunch of factory funct
Some plugins require custom data that the user has to provide. E.g. the `link` plugin needs a `href: string`. Easiest way is to define a jsonSchema for your slate plugin. This will auto-generate a form that can update your plugin.
0 commit comments