Issue #2924Opened July 28, 2020by tomazkramberger2 reactions

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

ShenolHuseinJanuary 26, 20210 reactions

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

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.