|
@@ -142,7 +142,7 @@ Here are the main requirements to create a new entity feature:
|
|
|
- Like for inline styles and blocks, set up the to/from DB conversion.
|
|
|
- The conversion usually is more involved, since entities contain data that needs to be serialised to HTML.
|
|
|
|
|
|
-To write the React components, Wagtail exposes its own React, Draft.js, and Draftail dependencies as global variables. Read more about this in [extending clientside components](extending_clientside_components).
|
|
|
+To write the React components, Wagtail exposes its own React, Draft.js, and Draftail dependencies as global variables. Read more about this in [extending client-side React components](extending_client_side_react).
|
|
|
To go further, please look at the [Draftail documentation](https://www.draftail.org/docs/formatting-options) as well as the [Draft.js exporter documentation](https://github.com/springload/draftjs_exporter).
|
|
|
|
|
|
Here is a detailed example to showcase how those tools are used in the context of Wagtail.
|
|
@@ -281,7 +281,7 @@ class StockSource extends React.Component {
|
|
|
```
|
|
|
|
|
|
This source component uses data and callbacks provided by [Draftail](https://www.draftail.org/docs/api).
|
|
|
-It also uses dependencies from global variables – see [Extending clientside components](extending_clientside_components).
|
|
|
+It also uses dependencies from global variables – see [Extending client-side React components](extending_client_side_react).
|
|
|
|
|
|
We then create the decorator component:
|
|
|
|