grapesjs-custom-code
grapesjs-custom-code copied to clipboard
[Question] Disable/customize auto formatting on save
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