AdvancedCustomFields / AdvancedCustomFields/acf

Default selected toolbars for WYSIWYG field

Open
#557 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.