Component HTML being changed
@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
Read full answer below ↓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 #4273
How to trigger the 'Import Template (modal)' on page load
Hello, Please i'm in need of the logic on how to the import template modal on initialization of the page... I'm using the newsletter preset...
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 #3139
FEAT: Disable <table> being auto amended during save
I'm getting an issue, when saving a custom HTML component (just a table), grapes JS will modify it. before save after save. So I want to be...
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 →Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.