...
HTML |
---|
<!-- jQuery --> <script src="https://code.jquery.com/jquery-3.3.1.js"></script> <!-- Synap Editor --> <script src='http://www.synapeditor.com/se/resource/synapeditor.config.js'></script> <script src='http://www.synapeditor.com/se/resource/synapeditor/synapeditor.min.js'></script> <link href='http://www.synapeditor.com/se/resource/synapeditor/synapeditor.min.css' rel='stylesheet' type='text/css'> <div style="background-color: #ffffff; width:99%; height:500px;"> <div id="synapEditor"> <p> <span>열기 아이콘을 클릭하거나 여기에 문서를 Drag&Drop 하세요.</span> </p> </div> </div> <script> const config = Object.assign(synapEditorConfig, { "editor.license":"/se/resource/license.json", "editor.toolbar": ["new","open"], "editor.menu.show": false, "editor.import.maxSize": 10485760, "editor.import.api": "/se/importDoc", "editor.upload.maxSize": 3145728, "editor.upload.image.api": "/se/uploadFile", "editor.upload.video.api": "/se/uploadFile", "editor.upload.file.api": "/se/uploadFile" }); window.editor = new SynapEditor("synapEditor", config, document.getElementById('synapEditor').innerHTML); </script> |
...