HTML
<div style="background-color: #ffffff; width:100%; height:300px;"> <div id="synapEditor"></div> </div> <p> <a id="btn-se-init" href="#">에디터 생성</a> </p>
Javascript
<script> $('a#btn-se-init').on('click', function (e) { e.preventDefault(); window.editor = new SynapEditor('synapEditor', 'config.json'); }); </script>