[QUESTION] Show all block categories
Question
Hi all, I am using the following bit of code to collapse all the block categories, what would the code be to expand them all?
const categories = editor.BlockManager.getCategories();
categories.each(category => {
category.set('open', false).on('change:open', opened => {
opened.get('open') && categories.each(category => {
category !== opened && category.set('open', false)
})
})
})
Answers (1)
Related Questions and Answers
Continue research with similar issue discussions.
Issue #3704
BUG: load blocks closed by default?
I am using the following bit of code to collapse all the block categories, unfortunately, this is not working live demo : https://jsfiddle....
Issue #1893
[QUESTION] Have to have all the blocks the same styles by definition
We are using blockManager, as you can see in the example posted to codesandbox, following the documentation related to custom render. The u...
Issue #1831
[Question] How to run command for a block component?
I'd like to do something like this. so once a user drops the test component into the canvas, I'd like to open up asset manager modal where...
Issue #2596
[QUESTION] Add html, css and js to Block Manager
[QUESTION] Hi! I'm retrieving dynamic html,css and js codes from the database. How can I create Blocks with this? Currently, this is my cod...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.