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

KeyDescription
editor.templateSets templates.
editor.template.headersRelease 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': {}
}

Browser confirmation dialog on reload

Related Features

  • Try Template Loading