[QUESTION] Component HTML being changed
Question
I am using GrapesJs to define Freemarker FTL templates. I am seeking an issue when my custom component HTML has been changed after inserted into canvas or imported through Import template component using newsletter plugin.
So my original HTML content looks like:
<table>
[#list items as item]
<tr>
<td>
<div class="m-stack m-stack--ver m-stack--general">
Some content ${item.id}
</div>
</td>
</tr>
[/#list]
</table>
into
[#list items as item][/#list]
<table>
<tr>
<td>
<div class="m-stack m-stack--ver m-stack--general">
Some content ${item.id}
</div>
</td>
</tr>
</table>
which corrupts my template.
Is there a way to bypass HTML formatting or whatever is going behind to cause this?
Answers (2)
@tomazkramberger did you find a solution to this problem?
@ShenolHusein Yes, i did. Here is the link to solution https://stackoverflow.com/questions/63475404/html-editor-removes-freemarker-tags-inside-table-tag
@tomazkramberger did you find a solution to this problem?
Related Questions and Answers
Continue research with similar issue discussions.
Issue #951
[QUESTION] Selection of custom components not possible from canvas.
Hey, I tried to figure this out by myself, but I'm feeling I'm going a little bit in circles. So I hope you will have some time to read thi...
Issue #1745
[Feature]: Allow to import HTML documents
Hi Team, We are using grapesjs newsletter plugin in our project for importing and preview the template. We are facing some difficulty in re...
Issue #1905
[QUESTION] Not editable block after import template
Have the same issue like in 1408. You said that JSON should be imported instead of the HTML. Can you tell me please how to import JSON temp...
Issue #2193
[QUESTION] Reset trait on edit the content of a custom component
Hi, I have a custom component which content can be changed by switching trait select options, but also can be edited similar to the text co...
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.