Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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 이상)
<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 이하)
<script src='https://www.synapeditor.com/resource/synapeditor/synapeditor.min.js'></script>
<script>
		window.editor = new SynapEditor('synapEditor', 'config.json');
</script>



  • No labels