...
HTML |
---|
<!-- external modules --> <script type="text/javascript" src='/se/resource/synapeditor/externals/SEDocModelParser/SEDocModelParser.min.js'></script> <script type="text/javascript" src='/se/resource/synapeditor/externals/codeMirror/codemirror.min.js'></script> <script type="text/javascript" src="/se/resource/synapeditor/externals/codeMirror/xml.min.js"></script> <link rel='stylesheet' href='/se/resource/synapeditor/externals/codeMirror/codemirror.min.css'> <!-- Synap Editor --> <script src='/se/resource/synapeditor/synapeditor.config.js'></script> <script src='/se/resource/synapeditor/synapeditor.min.js'></script> <link href='/se/resource/synapeditor/synapeditor.min.css' rel='stylesheet' type='text/css'> <!-- plugins --> <script type="text/javascript" src='/se/resource/synapeditor/plugins/collaboration/collaboration.min.js'></script> <link rel='stylesheet' href='/se/resource/synapeditor/plugins/collaboration/collaboration.min.css'> <div style="display: block; background-color: #ffffff; width:98%; height:400px; margin-bottom: 5px;"> <div id="synapEditor1"> <div class="se-contents" style="box-sizing: content-box; font-family: "맑은 고딕"; font-size: 11pt; line-height: 1.2;" data-document-padding-top="18" data-document-padding-bottom="18" data-document-padding-left="23" data-document-padding-right="23"> <p style="margin: 16px 0px; display: block; overflow-wrap: break-word;"><span>목록을 선택하여 편집 내용을 확인할 수 있고 내용을 복원할 수 있습니다. </span></p> <p style="margin: 16px 0px; display: block; overflow-wrap: break-word;"><span>실시간 협업에 참여 중인 사용자 정보를 표시하는 UI가 기본으로 제공됩니다.</span></p> <p style="margin: 16px 0px; display: block; overflow-wrap: break-word;"><span>목록의 사용자 이름을 클릭하면 해당 사용자의 캐럿 위치로 이동합니다.</span></p> </div> </div> </div> <div style="display: inline-block; background-color: #ffffff; width:49%; height:400px;"> <div id="synapEditor2"></div> </div> <div style="display: inline-block; background-color: #ffffff; width:49%; height:400px;"> <div id="synapEditor3"></div> </div> <script> const config = Object.assign(synapEditorConfig, { "editor.license":"/se/resource/license.json", "editor.toolbar": [ "new", "|", "undo", "redo", "|", "bold", "italic", "underline", "strike", "|", "growFont", "shrinkFont", "|", "fontColor", "fontBackgroundColor", "|", "directInsertTable", "|", "collaborator", "updateHistory" ], "editor.menu.show": false, "collaboration.config": { "wsUrl": "wss://synapeditor.com/collabo", "docId": Date.now().toString() } }); window.editor = new SynapEditor("synapEditor1", config, document.getElementById('synapEditor1').innerHTML, { initialized: function (e) { e.editor.plugins.collaboration.init(); } }); new SynapEditor("synapEditor2", config, document.getElementById('synapEditor2').innerHTML, { initialized: function (e) { e.editor.plugins.collaboration.init(); } }); new SynapEditor("synapEditor3", config, document.getElementById('synapEditor3').innerHTML, { initialized: function (e) { e.editor.plugins.collaboration.init(); } }); </script> |
...