QUESTION: is there a way to do trait based placeholders
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 #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...
Issue #1167
[QUESTION] export options
Hi @artf, Are there any other export options than HTML/CSS ? I'm thinking of a way to directly load the configuration from a remote server...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.