☁️ Loving our new documentation website? Provide feedback in the CloudCannon Community! ✨

code_block

Table of contents

Description:

This key toggles whether CloudCannon will display a control in your WYSIWYG toolbar to insert a code block in editable regions.

Setting this key to true will enable a control in your WYSIWYG toolbar to insert a code block.

By default, this key is false (i.e., the code block control is not displayed).

Appears in:
├── _inputs
│   └── *
│       └── Rich Text Input
│           └── options
│               └── code_block
└── _editables
    ├── content
    │   └── code_block
    └── block
        └── code_block
Type:
boolean
Default value:
false
Examples:
Open in a new tab