Issue #2611πŸ’¬ AnsweredOpened Feb 29, 2020by orionseye0 reactions

Dragging external content to Canvas

Quick answerby orionseye

I am clarifying what i want to achieve: I have some 100+ html snippets which i use on current 'handcrafted' builder and need to migrate them to GrapesJS. To my surprise,, this doesn't seem to be a straight forward job. Currently, with 2 Ajax functions i achieve what is needed. a) ajax + scan_dir to list all files insi...

Read full answer below ↓

Question

I am trying to add d&d functionality from a modal which lists a bunch of html files (html snippets) .. into the editor canvas. Each of them enclose the content with a <section> I tried to use 'canvas:dragdata' to allow dropping into canvas As i understood, this is to extend the file types can be dropped, GrapesJS supports text + image, so above approach should work? Meanwhile, and after playing around with editor.DomComponents.addType i am changing the scope of my issue ..see comment below

Answers (2)

orionseyeβ€’ Feb 29, 2020

I am clarifying what i want to achieve: I have some 100+ html snippets which i use on current 'handcrafted' builder and need to migrate them to GrapesJS. To my surprise,, this doesn't seem to be a straight forward job. Currently, with 2 Ajax functions i achieve what is needed. a) ajax + scan_dir to...

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 β†’

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.