AdvancedCustomFields / AdvancedCustomFields/acf
How do I get the current wysiwyg toolbar name?
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 945
- Forks
- 197
- PR merge metrics
- No merged PRs in 30d
Description
I'm trying to customize the instances of wysiwyg-editors. I would like to change the available block_formats based on the toolbar that has been set (like basic, full or any custom one). I'm using the JS api https://www.advancedcustomfields.com/resources/javascript-api/#filters-wysiwyg_tinymce_settings but I can't find any reference to the toolbar name or key. Is that information available at that point?
Or is there maybe another way to set the tinymce block_formats based on the toolbar using another hook, or a php hook?
I'm using ACF PRO 5.9.0 with Wordpress 5.5.1
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 documented filters-wysiwyg_tinymce_settings JavaScript API and the ACF WYSIWYG settings hooks mentioned in the issue. Confirm whether the current toolbar name or key is available there, then define and document or implement a supported way to select block_formats for basic, full, or custom toolbars.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, php
- Domain
- content, web-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100