Issue #1143Opened May 29, 2018by ssabrewolf1 reactions

How to enable progamatic placeholder block insert

Question

Hello grapesjs Team

I succesfully created a component with traits and a block to insert it, when i drag n drop the block there is a green line placeholder which works as guide helper for the user to insert components as seen here landdrag , this line helper only appears on block drag n drop operation, is it possible to trigger this line helper progamaticaly without a manual drag n drop operation, would want to render this line if a url param is present (e.g mysite.com/editor?wcomp=map is available )

Regards

Answers (2)

artfMay 31, 20181 reactions

No, unfortunately, there is no way to trigger d&d in that way, something similar you can do with a selected component in canvas via editor.runCommand('tlb-move') but not with blocks

lock[bot]September 17, 20190 reactions

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

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...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.