Skip to content

Commit

Permalink
feat(docs): update README with more precise editor_toolbar_buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
maximehuran committed Jan 21, 2025
1 parent 474b93d commit 8f7f82e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,14 @@ $builder->add('content', WysiwygType::class, [
'editor_height' => 500,
'editor_locale' => 'fr',
'editor_toolbar_type' => EditorInterface::TOOLBAR_TYPE_CUSTOM,
'editor_toolbar_buttons' => [['bold', 'italic', 'underline']],
'editor_toolbar_buttons' => [
['undo', 'redo'],
['bold', 'underline', 'italic', 'strike'],
['fontColor', 'hiliteColor'],
['removeFormat'],
['link'],
['showBlocks', 'codeView'],
],
'editor_custom_config' => ['option1' => 'value1', 'option2' => 'value2'],
]);
```
Expand Down

0 comments on commit 8f7f82e

Please sign in to comment.