Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

체험하기

...

languagexml
themeEmacs
titleHTML
linenumberstrue

...

<div style="background-color: #ffffff; width:100%; height:300px;">
        <div id="synapEditor"></div>
</div>
Code Block
languagejs
themeEmacs
titleJavascript
linenumberstrue
<script>
		window.editor = new SynapEditor('synapEditor', 'config.json');
</script>
<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"
HTML
HTML
<!-- code mirror -->
<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'>

<!-- external modules -->
<script type="text/javascript" src='/se/resource/synapeditor/externals/formulaParser/formula-parser.min.js'></script>
<script type="text/javascript" src='/se/resource/synapeditor/externals/SEDocModelParser/SEDocModelParser.min.js'></script>
<script type="text/javascript" src='/se/resource/synapeditor/externals/SEShapeManager/SEShapeManager.min.js'></script>

<!-- Synap Editor -->
<script src='/se/resource/synapeditor/synapeditor.config.js'></script>
<script src='http:/se/resource/wwwsynapeditor/synapeditor.synapeditor.commin.js'></script>
<link href='/se/resource/synapeditor/synapeditor.js'></script>.min.css' rel='stylesheet' type='text/css'>

<div style="background-color: #ffffff; width:99%; height:200px300px;">
        <div id="synapEditor"><>Div와 같은 HTML Element를 이용하여 초기화한 사이냅에디터입니다.</div>
</div>
<script>
		window.editor = new SynapEditor('synapEditor', synapEditorConfig, 'http://www.synapeditor.com/resource/config.json'document.getElementById('synapEditor').innerHTML);
</script>


설정하기

Code Block
languagexml
themeEmacs
linenumberstrue
<div id='synapEditor'>
    Div와 같은 HTML Element를 이용하여 초기화한 사이냅에디터입니다.
</div>
 
<script>
	//synapEditorConfig는 에디터 설정 객체입니다.
    new SynapEditor('synapEditor', synapEditorConfig, document.getElementById('synapEditor').innerHTML);
</script>