Skip to content

Commit

Permalink
Update docs for defaultBlockType setting
Browse files Browse the repository at this point in the history
  • Loading branch information
davisagli committed Mar 10, 2024
1 parent 16ffad6 commit b2b5742
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/source/configuration/settings-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ navDepth
Navigation levels depth used in the navigation endpoint calls. Increasing this is useful for implementing fat navigation menus. Defaults to `1`.
defaultBlockType
The default block type in Volto is "text", which uses the current DraftJS-based implementation for the rich text editor. Future alternative rich text editors will need to use this setting and replace it with their block type. The block definition should also include the `blockHasValue` function, which is needed to activate the Block Chooser functionality. See this function signature in [Blocks > Settings](../blocks/settings.md).
The name of the default block type used when a new block is added.
The default value of this setting is "slate", which uses the current Slate-based implementation for the rich-text editor.
If you change this to a different type of block, make sure the block config includes the `blockHasValue` function. See this function signature in [Blocks > Settings](../blocks/settings.md).
sentryOptions
In Volto 16.0.0.alpha.45, Sentry integration was moved from core to the add-on [`@plone-collective/volto-sentry`](https://www.npmjs.com/package/@plone-collective/volto-sentry).
Expand Down
1 change: 1 addition & 0 deletions packages/volto/news/5854.documentation
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update docs for the defaultBlockType setting. @davisagli

0 comments on commit b2b5742

Please sign in to comment.