GrapesJS / GrapesJS/components-custom-code

[Question] Disable/customize auto formatting on save

Đang mở
#3 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
81
Fork
47
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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?

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.