Issue #364✓ SolvedOpened October 2, 2017by cmcintosh4 reactions

Sort How Block Categories are displayed.

Quick answerby d3vr2

As a (not-so-great and hopefully temporary) workaround, I moved the category I wanted to move using jQuery after the editor was fully initialized:

Read full answer below ↓

Question

Is there a method to set how the categories are shown in the Block tab?

Answers (3)

👍 Most helpfuld3vrApril 22, 2018

As a (not-so-great and hopefully temporary) workaround, I moved the category I wanted to move using jQuery after the editor was fully initialized:

setTimeout(function(){
    $(".gjs-block-categories>div:last").prependTo(".gjs-block-categories");
}, 1000)
cmcintoshOctober 16, 2017

We could look at something simple as adding a Weight parameter like CMS's like drupal do. Ill look at the code to see how hard it would be to create a PR.

edwardjiaweiNovember 14, 2017

Should the plugin added components being sort. should able to customized afterward like editor.BlockManager.sort(filter) -- by filter of label, by any config of order in BlockManager.add

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.