Issue #1211✓ SolvedOpened June 17, 2018by ivanezeigbo2 reactions

Adding a working Import Panel Button without the presets

Quick answerby ivanezeigbo2

Oh, I just figured it out. So, for those who might be curious about how to solve this, this is how I went about it (by the way, this is thanks to the answer in Issue #324 :

Read full answer below ↓

Question

I want to add the Import button at the panel for importing templates, but I don't want to use the presets. I have already added the following code:

... { id: 'import', className: 'fa fa-download', attributes: {title: 'Import Your Template'}, command: function(editor, sender){ ???? } } ...

I don't know what should be in the command. Please, could you tell me the function to use for command?

Answers (2)

👍 Most helpfulivanezeigboJune 17, 2018

Oh, I just figured it out. So, for those who might be curious about how to solve this, this is how I went about it (by the way, this is thanks to the answer in Issue #324 :

lock[bot]September 17, 2019

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

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.