GrapesJS / GrapesJS/components-custom-code

[Question] Disable/customize auto formatting on save

Aperta
#3 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
81
Fork
47
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.