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:/se/www.synapeditor.com/resource/synapeditor/externals/codemirrorcodeMirror/codemirror.min.js'></script>
<script type="text/javascript" src="http:/se/www.synapeditor.com/resource/synapeditor/externals/codemirrorcodeMirror/xml.min.js"></script>
<link rel='stylesheet' href='http:/se/www.synapeditor.com/resource/synapeditor/externals/codemirrorcodeMirror/codemirror.min.css'>

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


<!-- Synap Editor -->
<script src='http://www.synapeditor.com/resource/synapeditor.config<script type="text/javascript" src='/se/resource/synapeditor/externals/SEDocModelParser/SEDocModelParser.min.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'>

<!-- tuiSynap Image Editor -->
<script type="text/javascript"src='/se/resource/synapeditor/synapeditor.config.js'></script>
<script src='http:/se/www.synapeditor.com/resource/synapeditor/plugins/tuiImageEditor/tuiImageEditorsynapeditor.min.js'></script>
<link rel='stylesheet' href='http:/se/www.synapeditor.com/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>
		window.editor = new SynapEditor("synapEditor", {
			"editor.type": "inline",
			"editor.license":"/resource/license.json",
			"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"
			}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>