HTML
<div style="background-color: #ffffff; width:100%; height:300px;"> <div id="synapEditor"></div> </div>
When SynapEditor object is generated, synapEditorConfig object (defined in synapeditor.config.js file) shall be transferred.
Javascript (v2.2.0 or above)
<script src='https://www.synapeditor.com/resource/synapeditor/synapeditor.config.js'></script> <script src='https://www.synapeditor.com/resource/synapeditor/synapeditor.min.js'></script> <script> window.editor = new SynapEditor('synapEditor', synapEditorConfig); </script>
In version 2.1.0 or below, the path of configuration file (config.json) shall be designated.
Javascript (v2.1.0 or below)
<script src='https://www.synapeditor.com/resource/synapeditor/synapeditor.min.js'></script> <script> window.editor = new SynapEditor('synapEditor', 'config.json'); </script>