Issue #2924✓ SolvedOpened July 28, 2020by tomazkramberger2 reactions

Component HTML being changed

快速解答by tomazkramberger2

@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)

ShenolHuseinJanuary 26, 2021

@tomazkramberger did you find a solution to this problem?

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

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.