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