Issue #6358πŸ’¬ AnsweredOpened Dec 19, 2024by rhoenerSBS0 reactions

BlockManager config "appendOnClick" does not work anymore

Quick answerby artf

Thanks @rhoenerSBS the issue was fixed here and will be available in the next release.

Read full answer below ↓

Question

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome v131 Reproducible demo link https://jsfiddle.net/0uaxn2vc/2/ Describe the bug How to reproduce the bug?open link to fiddleselect body or other component where components can be addedtry to add component only by clicking the block and not with drag and dropthat used to work but does not anymore even with appendOnClick: true in the BlockManager config What is the expected behavior? component should be added on click only What is the current behavior? error in console: "BlockView.ts:58 Uncaugh...

Answers (2)

artfβ€’ Jan 10, 2025

Thanks @rhoenerSBS the issue was fixed here and will be available in the next release.

GJS Helperβ€’ May 17, 2026

The appendOnClick option in GrapesJS's BlockManager is indeed broken in recent versions, leading to the Uncaught TypeError: c.setDropContent is not a function error. This issue stems from a change in how the BlockView handles click events when appendOnClick is enabled. Root Cause In GrapesJS, when...

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.