Is there a way to do trait based placeholders
Your question isn't completely clear are what you're trying to achieve, but take a look at creating components.
Read full answer below ↓Question
Hi Not sure if this is the correct place to ask.
trying to load the content of a textarea into this framework.
But allot of the links have placeholders within the default html such a <a href="{{placeholder for default url }}" is there a way to render this link within the canvas but leave the original html unmodified?
Answers (3)
Your question isn't completely clear are what you're trying to achieve, but take a look at creating components.
hi! for the select model you may use editor.Modal and as it's content, inject your desired logic for choosing and configuring your widgets. then you can inject the result widget using yourComponent.components(yourWidget) to fill the content of block with your widget. for the ajax rendering part, you can define some logic in the view property of your component type definition as well.
Sorry Let me explain
take a cms widget such as {{widget name="test" type="\Php\Class"}}
Concenpt is to drag a block which opens a widget select model to choose a widget set the options and hit add that generates such as above. This needs to the ajaxly render to canvas, but leave the html with the above widget.
Ive done something similar for asset management, and got normal placeholders working but the variables in that widget may have different values
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1313
[Question] Set traits value from html on component load
I have custom component and want to set trait default values from html. below is html rendered by component. traits I am trying to set for...
Issue #5046
is there any way to remove cross svg on selected default value of Float, Position and text-align
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Version 111.0.5563.147 (Official Build) (6...
Issue #2364
[Question] How to add toolbar functionality to the layers panel.
I am trying to add the toolbar to the layers panel and I am not sure how to go about this. Is there any way to accomplish this? toolbar Whe...
Issue #1707
Find images links in the editor
I am trying to integrate GrapesJs in reactJs. Can you please help me out with the below question w.r.t GrapesJs-React, • Is there a way to...
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.