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>

SynapEditor객체 생성시 synapEditorConfig 객체(synapeditor.config.js 파일에 정의되어 있습니다)를 넘겨줍니다.

<script src='http://www.synapeditor.com/resource/synapeditor/synapeditor.config
Code Block
languagejs
themeEmacs
titleJavascript (v2.2.0 이상)
linenumberstrue
HTML
<!-- code mirror -->
<script type="text/javascript" src='/se/resource/synapeditor/externals/codeMirror/codemirror.min.js'></script>
<script type="text/javascript" src='http://www.synapeditor.com/resource/synapeditor/synapeditor"/se/resource/synapeditor/externals/codeMirror/xml.min.js'"></script>
<script>
		window.editor = new SynapEditor('synapEditor', synapEditorConfig);
</script>
HTML
<!-- jQuery -->
<script src="https://code.jquery.com/jquery-3.3.1.js"></script><link rel='stylesheet' href='/se/resource/synapeditor/externals/codeMirror/codemirror.min.css'>

<!-- codeexternal mirrormodules -->
<script type="text/javascript" src='http:/se/www.synapeditor.com/resource/synapeditor/externals/codemirrorformulaParser/codemirrorformula-parser.min.js'></script>
<script type="text/javascript" src="http:'/se/www.synapeditor.com/resource/synapeditor/externals/codemirrorSEDocModelParser/xmlSEDocModelParser.min.js"'></script>
<link
rel='stylesheet' href='http://www.synapeditor.com/resource/synapeditor/externals/codemirror/codemirror.min.css'>

<!-- formular parser -->
<script type="text/javascript" src='http://www.synapeditor.com/se/resource/synapeditor/externals/formula-parser/formula-parserSEShapeManager/SEShapeManager.min.js'></script>


<!-- Synap Editor -->
<script src='http:/se/resource/www.synapeditor.com/resource/synapeditor.full.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'>

<!-- tui Image Editor -->
<script type="text/javascript" src='http://www.synapeditor.com/resource/synapeditor/plugins/tuiImageEditor/tuiImageEditor.min.js'></script>
<link rel='stylesheet' href='http://www.synapeditor.com/resource/synapeditor/plugins/tuiImageEditor/tuiImageEditor.min.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, document.getElementById('synapEditor').innerHTML);
</script>

...


설정하기

Code Block
languagejsxml
themeEmacs
titleJavascript (v2.1.0 이하)
linenumberstrue
<script<div srcid='http://www.synapeditor.com/resource/synapeditor/synapeditor.min.js'></script>
<script>
		window.editor ='synapEditor'>
    Div와 같은 HTML Element를 이용하여 초기화한 사이냅에디터입니다.
</div>
 
<script>
	//synapEditorConfig는 에디터 설정 객체입니다.
    new SynapEditor('synapEditor', 'config.json'synapEditorConfig, document.getElementById('synapEditor').innerHTML);
</script>