...
HTML |
---|
<!-- jQuery --> <script src="https://code.jquery.com/jquery-3.3.1.js"></script> <!-- Synap Editor --> <script src='http://www.synapeditor.com/resource/synapeditor.config.js'></script> <script src='http://www.synapeditor.com/resource/synapeditor/synapeditor.min.js'></script> <link href='http://www.synapeditor.com/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> window.editorconst config = new SynapEditor("synapEditor"Object.assign(synapEditorConfig, { "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" }); window.editor = new SynapEditor("synapEditor", config, document.getElementById('synapEditor').innerHTML); </script> |
...