GrapesJS / GrapesJS/components-custom-code

[Question] Disable/customize auto formatting on save

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
81
Forks
47
PR merge metrics
No merged PRs in 30d

Description

When adding JS specifically I am using Django to render in the background so If I have:

```
var isAuthenticated = {% if purchase_session.username %}true{% else %}false{% endif %};
```
The auto format changes it to this which prevents Django from parsing out its tags:
```
var isAuthenticated = {
%if purchase_session.username%}
true{
%else%}
false{
%endif%};
```
Is there a way to prevent the auto formatting of code inside tags?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.