StringtaleProvider
<StringtaleProvider> wraps your app and enables Stringtale editing. Beyond the defaults, you can turn on optional features with props.
Example usage
<StringtaleProvider enableHistory enableComments> {children}</StringtaleProvider>apiRoute
Optional. The URL of your Stringtale API route. Defaults to /api/stringtale.
Use an absolute URL when the front-end and API live on different origins (typical for Express.js):
<StringtaleProvider apiRoute="https://www.example.com/api/stringtale"> {children}</StringtaleProvider>enableHistory
Lets editors view the change history of an editable field. An extra button appears in the interface so they can see what changed and when.
enableComments
Lets editors leave comments on a specific <Value> tag. This can be useful to request the developer to enable certain text formatting. Developers connected to the Project or Workspace then receive an email with the request.