AdvancedCustomFields / AdvancedCustomFields/acf
Default selected toolbars for WYSIWYG field
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 945
- Forks
- 197
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
We can add custom toolbars for WYSIWYG field with this filter acf/fields/wysiwyg/toolbars. I don't find a way to change the default toolbar selected when we create a new WYSIWYG field.
$this->defaults = array(
'tabs' => 'all',
'toolbar' => 'full',
'media_upload' => 1,
'default_value' => '',
'delay' => 0
);
It's possible to add a filter or else to be able to change the default selected toolbars ?
Thanks
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the WYSIWYG field defaults shown in the issue and trace how the toolbar value is selected when a new field is created. Check the existing acf/fields/wysiwyg/toolbars filter as the nearest entry point; the work is done when the default selected toolbar can be changed as requested.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- web-dev
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100