Skip to content

Commit

Permalink
Merge pull request #14 from pimcore/docs
Browse files Browse the repository at this point in the history
Add custom toolbar buttons docs
  • Loading branch information
wisconaut authored Jan 14, 2025
2 parents dbac8ff + ce869b8 commit 4a28365
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ The following code customize the toolbar.
### Custom configuration for Quill

A list of configuration options you can find in the [Quill toolbar documentation](https://quilljs.com/docs/modules/toolbar).
In addition to this you can also configure `undo`, `redo` and `html-edit`.

The WYSIWYG editable allows us to specify the toolbar.
If you have to limit styling options (for example only basic styles like `<b>` tag and lists would be allowed), just use `toolbar` option.
Expand All @@ -51,7 +52,9 @@ If you have to limit styling options (for example only basic styles like `<b>` t
modules: {
toolbar: {
container: [
[{ header: [1, 2, 3, 4, 5, 6, false] }]
['undo', 'redo'],
[{ header: [1, 2, 3, 4, 5, 6, false] }],
['html-edit']
]
}
}
Expand Down

0 comments on commit 4a28365

Please sign in to comment.