Issue #6422๐Ÿ’ฌ AnsweredOpened Feb 27, 2025by sumasal0 reactions

In dev branch when the preview is enabled dragging of components should not be allowed but it does.

Quick answerby sumasal

temporary workaround for the impatient:

Read full answer below โ†“

Question

GrapesJS version [x] I confirm to use the latest version of GrapesJS What browser are you using? chrome 133 with dev branch as of 02.27.2025 Reproducible demo link clone dev repos as of 02.27.2025 Describe the bug How to reproduce the bug? ... clone repo and build and start ...in demo page click to enter preview mode and try dragging a component. it is allwoed and it makes the canvas run in a semi edit mode until recycled with preview button What is the expected behavior? ... no drag or any edit feature should be disabled in edit mode What is the current behavior? ... If is necessary to execu...

Answers (2)

sumasalโ€ข Mar 22, 2025

temporary workaround for the impatient:

  editor.on('command:run:before:tlb-move', (command) => {
        command.options.abort = editor.Commands.isActive('preview');
      });
GJS Helperโ€ข May 17, 2026

It appears you've identified a bug in the GrapesJS dev branch where component dragging is still possible even when the editor is in preview mode. This is indeed contrary to the expected behavior, as preview mode should disable all editing interactions, including dragging, resizing, and selecting co...

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.