Templates
Using the template feature provided by Synap Editor, you can create various documents quickly and easily.
By registering template files (HTML) in specific browser-accessible locations and configuring as follows, you can use the template feature.
Setting
| Key | Description |
|---|---|
editor.template | Sets templates. |
editor.template.headers | Release 2.7.0 and above. Sets the template request headers. |
Setting Example
// synapeditor.config.js
{
'editor.template': [
{
'category': 'template_category1',
'label': 'Report',
'items': [
{
'name': 'Research Report',
'path': '/resource/template/template1.html'
},
{
'name': 'Sales Report',
'path': '/resource/template/template2.html'
}]
}
],
'editor.template.headers': {}
}

Related Features
- Try Template Loading