Issue #1574💬 AnsweredOpened November 13, 2018by ThomasLaigneau0 reactions

Question, Block content from file

Quick answerby artf

No @ThomasLaigneau you have to manage that by yourself, eg.

Read full answer below ↓

Question

Hi, this is not really an issue but more a question. I'm currently using custom blocks in my GrapesJS editor. This is how I create them : It works fine but for file optimization is it possible to load the content of the block like this : Can't achieve this.. Thanks for answers !

Answers (2)

artfNovember 16, 2018

No @ThomasLaigneau you have to manage that by yourself, eg.

fetch(`../myblock.html`)
.then(res => res.text())
.then(html => {
	editor.BlockManager.add...
})
lock[bot]November 16, 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.