Predefined non-changeable content blocks
Yes, it is. I can see, at least, one way to achieve this. You could create a new non-editable component and use it to create your own custom blocks. PS: I don't remember if you can add non-editable blocks. If it's possible to do that, you don't need to create a new component. Just add non-editable custom blocks with y...
Read full answer below ↓Question
Is it possible to create predefined content blocks with data you put in from your backend and which the user cannot change and only place or move in it's "webpage" ?
I'm trying to find a way to have a user creating pages based on content that is made available by what I provide him and be able to use.
Answers (3)
Yes, it is.
I can see, at least, one way to achieve this. You could create a new non-editable component and use it to create your own custom blocks.
PS: I don't remember if you can add non-editable blocks. If it's possible to do that, you don't need to create a new component. Just add non-editable custom blocks with your content
Here you can see how to create components: https://github.com/artf/grapesjs/wiki/Components
Here you can see how to add blocks: https://github.com/artf/grapesjs/wiki/Blocks
@arthuralmeidap correct, @Yamakasi you can set editable as false on any text Component. BTW that wiki is outdated, you can find all the documentation here:
Hi Guys! Sorry for the late response! I can work with that, clearly, thanks! Have a good 2019!
Related Questions and Answers
Continue research with similar issue discussions.
Issue #923
[Question]: Add a select-option to toolbar
I have read the code and only I could find out that there is only a list of ToolbarButton associated with the toolbar. I have a special tra...
Issue #1485
How to prevent styling html components?
Im trying to create some templates, which should not be editable and styleable. So that when i drag in my blocks then should stay as define...
Issue #499
Tabs inside Panel
Hi @artf, As you must know, at my company we are creating a product based on GrapesJS. We are trying to keep as close as possible from Grap...
Issue #1174
How to change the content of a dragged component?
Hi everyone, Im kinda stuck with creating a custom component. A custom block that im currently building supposed to show a modal with butto...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.
Browse free plugins →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.
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.