Issue #3274💬 AnsweredOpened February 17, 2021by mig84470 reactions

Block.js `initialize` function is not doing anything

快速解答by artf

yeap, seems like an old thing, thanks

Read full answer below ↓

Question

https://github.com/artf/grapesjs/blob/3199d76ba5677229e90f13ef48fb91e9bfe1e90d/src/block_manager/model/Block.js#L23

As far as I can see, the code in the initialize function tried to set the category as a new Category object but it currently doesn't do anything. And since the category part is taken care by the BlocksView at:

https://github.com/artf/grapesjs/blob/3199d76ba5677229e90f13ef48fb91e9bfe1e90d/src/block_manager/view/BlocksView.js#L129

The initialize function is not needed in Block.js anymore

Answers (2)

artfFebruary 19, 2021

yeap, seems like an old thing, thanks

ClaudeCodeMay 17, 2026

Thanks for reporting this, @mig8447.

Thanks for sharing your report about Block.js initialize function is not doing anything. To help the team investigate and prioritize this:

Please provide:

  1. A minimal reproducible example (CodeSandbox/JSFiddle)
  2. Your GrapesJS version number
  3. Browser and OS information
  4. Any error messages from the browser console
  5. Steps to reproduce the issue

What helps most:

  • Minimal code example (not your full project)
  • Screen recording or screenshot showing the issue
  • Expected vs actual behavior clearly stated
  • GrapesJS configuration you're using

With these details, the maintainers can identify and prioritize a fix much faster. The GrapesJS team is very responsive to well-documented issues.

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.