Skip to content

Commit

Permalink
Content edits (#6451)
Browse files Browse the repository at this point in the history
  • Loading branch information
raveling authored Sep 2, 2021
1 parent dd357d0 commit 3443efa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
5 changes: 0 additions & 5 deletions docs/pages/docs/guides/document-field-demo.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@ export default ({ children }) => {
id: 'document-field-demo',
depth: 1,
},
{
label: 'Try the demo',
id: 'try-the-demo',
depth: 2,
},
...headings,
]}
>
Expand Down
9 changes: 5 additions & 4 deletions docs/pages/docs/guides/document-fields.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ export default config({
<details>

<summary>
In the document editor at the top of this page, the Quote(shown above), Notice and Hero are
In the [document editor demo](/docs/guides/document-field-demo), the insertable Quote, Notice and Hero items are
implemented as component blocks, see the implementation for Notice and Hero by expanding this.
</summary>

Expand Down Expand Up @@ -641,9 +641,10 @@ fields.conditional(fields.checkbox({ label: 'Show Call to action' }), {

### Chromeless

If you want to give your component blocks a more native feel in the editor, you can set `chromeless: true`.
When you disable it, the generated form is disabled.
In the editor at the top of this page, the Notice and Quote blocks are chromeless and the Hero has the chrome enabled.
If you want to give your component blocks a more native feel in the editor, you can set `chromeless: true` to disable Keystone's standard generated edit form. In the [document editor demo](/docs/guides/document-field-demo), the Notice and Quote blocks are chromeless, but the Hero block has the standard chrome styling:

![Notice, Quote, and Hero component blocks demonstrating chrome, and chromeless styling](/assets/guides/document-fields/chomeless-example-docs-demo.png)

You will likely want to provide a custom [toolbar](#toolbar) when you set `chromeless: true`.

```tsx
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

1 comment on commit 3443efa

@vercel
Copy link

@vercel vercel bot commented on 3443efa Sep 2, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.