GrapesJS / GrapesJS/components-custom-code

[Question] Disable/customize auto formatting on save

オープン
#3 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
81
フォーク
47
PR マージ指標
30日以内にマージされた PR はありません

説明

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?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。