mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2024-11-29 18:39:16 +08:00
自定义页面编辑细节优化
This commit is contained in:
parent
3f857e9511
commit
afd24699b6
@ -111,7 +111,7 @@ class AcePlayground extends HTMLElement
|
||||
this.htmlEditor = ace.edit(shadow.querySelector('#html'), {...ace_editor_config, ...{
|
||||
theme: 'ace/theme/monokai',
|
||||
mode: 'ace/mode/html',
|
||||
value: `{{if empty($data["html_content"])}}<p>Hello World</p>{{else /}}{{$data.html_content|raw}}{{/if}}`,
|
||||
value: `{{if empty($data["html_content"])}}<!-- html -->{{else /}}{{$data.html_content|raw}}{{/if}}`,
|
||||
}});
|
||||
this.cssEditor = ace.edit(shadow.querySelector('#css'), {...ace_editor_config, ...{
|
||||
theme: 'ace/theme/tomorrow_night_eighties',
|
||||
|
Loading…
Reference in New Issue
Block a user