Page tree

Versions Compared

Key

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

체험하기

HTML
<!-- jQuery -->
<script src="https://code.jquery.com/jquery-3.3.1.js"></script>

<!-- code mirror -->
<script type="text/javascript" src='http://www.synapeditor.com/se/resource/synapeditor/externals/codemirrorcodeMirror/codemirror.min.js'></script>
<script type="text/javascript" src="http://www.synapeditor.com/se/resource/synapeditor/externals/codemirrorcodeMirror/xml.min.js"></script>
<link rel='stylesheet' href='http://www.synapeditor.com/se/resource/synapeditor/externals/codemirrorcodeMirror/codemirror.min.css'>

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


<!-- Synap Editor -->
<script<script type="text/javascript" src='http:/se/resource/www.synapeditor.com/externals/resourceSEDocModelParser/synapeditorSEDocModelParser.configmin.js'></script>
<script type="text/javascript" src='http:/se/resource/www.synapeditor.com/resourceexternals/synapeditorSEShapeManager/synapeditorSEShapeManager.min.js'></script>
<link href='http://www.synapeditor.com/resource/synapeditor/synapeditor.min.css' rel='stylesheet' type='text/css'>

<!-- tui ImageSynap Editor -->
<script type="text/javascript"src='/se/resource/synapeditor/synapeditor.config.js'></script>
<script src='http://www.synapeditor.com/se/resource/synapeditor/plugins/tuiImageEditor/tuiImageEditorsynapeditor.min.js'></script>
<link rel='stylesheet' href='http://www.synapeditor.com/se/resource/synapeditor/plugins/tuiImageEditor/tuiImageEditorsynapeditor.min.css'> 
 <div style="background-color: #ffffff; width:99%; height:500px;">
      rel='stylesheet' type='text/css'>

<div id="synapEditor">
			인라인 에디터입니다.
		</div>
</div>
<script>
		synapEditorConfig['editor.type'] = 'inline';
		synapEditorConfig['editor.size.height'] = '150px';
		window.editor = new SynapEditor("synapEditor", synapEditorConfig, document.getElementById('synapEditor').innerHTML);
</script>


설정하기

Code Block
languagexml
themeEmacs
linenumberstrue
<div id='synapEditor'>
	인라인 에디터입니다.
</div>

<script>
	new SynapEditor('synapEditor', {
		//...
		'editor.type': 'inline',
		//...
	}, document.getElementById('synapEditor').innerHTML);
</script>