{% set content %}
<bolt-text>Hello World!</bolt-text>
{% endset %}
{% include '@bolt-components-editor/editor.twig' with {
styles: ['/build/bolt-global.css'],
scripts: ['/build/bolt-global.js'],
content: content,
} only %}
Prop Name | Description | Type | Default Value | Option(s) |
---|---|---|---|---|
content
*
|
HTML content to edit |
string
| — |
|
styles
*
|
URL paths to CSS files that the editable content requires |
array[string]
| — |
|
scripts
*
|
URL paths to JS files that the editable content requires |
array[string]
| — |
|
id
|
ID for this content. Useful for saving back to a data store like Drupal by passing in the paragraph ID. ID emitted in save event. |
string
| — |
|
npm install @bolt/components-editor
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
You are about to reach your monthly data limit...