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 44 Next »

HTML
<div style="background-color: #ffffff; width:100%; height:300px;">
        <div id="synapEditor"></div>
</div>


SynapEditor객체 생성시 synapEditorConfig 객체(synapeditor.config.js 파일에 정의되어 있습니다)를 넘겨줍니다.

Javascript (v2.2.0 이상)
<script src='http://www.synapeditor.com/resource/synapeditor/synapeditor.config.js'></script>
<script src='http://www.synapeditor.com/resource/synapeditor/synapeditor.min.js'></script>
<script>
		window.editor = new SynapEditor('synapEditor', synapEditorConfig);
</script>



2.1.0 이하 버전에서는 환경설정파일(config.json)의 경로를 지정해줍니다.

Javascript (v2.1.0 이하)
<script src='http://www.synapeditor.com/resource/synapeditor/synapeditor.min.js'></script>
<script>
		window.editor = new SynapEditor('synapEditor', 'config.json');
</script>



  • No labels