Skip to content

Commit

Permalink
Update 11-markdown-editor.md
Browse files Browse the repository at this point in the history
  • Loading branch information
danharrin committed Mar 3, 2025
1 parent 15b225b commit 19dc548
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/schemas/docs/02-forms/11-markdown-editor.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ MarkdownEditor::make('content')
])
```

<UtilityInjection set="formFields" version="4.x">As well as allowing a static value, the `toolbarButtons()` method also accepts a function to dynamically calculate it. You can inject various utilities into the function as parameters.</UtilityInjection>

Alternatively, you may disable specific buttons using the `disableToolbarButtons()` method:

```php
Expand All @@ -76,3 +78,5 @@ MarkdownEditor::make('content')
->fileAttachmentsDirectory('attachments')
->fileAttachmentsVisibility('private')
```

<UtilityInjection set="formFields" version="4.x">As well as allowing static values, the `fileAttachmentsDisk()`, `fileAttachmentsDirectory()`, and `fileAttachmentsVisibility()` methods also accept functions to dynamically calculate them. You can inject various utilities into the function as parameters.</UtilityInjection>

0 comments on commit 19dc548

Please sign in to comment.