自定义页面编辑细节优化

This commit is contained in:
gongfuxiang 2023-03-13 18:07:44 +08:00
parent 3f857e9511
commit afd24699b6

View File

@ -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',