grapesjs-custom-code icon indicating copy to clipboard operation
grapesjs-custom-code copied to clipboard

[Question] Disable/customize auto formatting on save

Open detectedstealth opened this issue 6 years ago • 0 comments

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

detectedstealth avatar Oct 05 '18 21:10 detectedstealth