Page tree

Versions Compared

Key

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

...

Code Block
languagexml
themeEmacs
titleHTML
linenumberstrue
<div style="background-color: #ffffff; width:100%; height:300px;">
        <div id="synapEditor"></div>
</div>
<p>
  <a id="btn-se-init" href="#">에디터 생성</a>
</p>


Code Block
languagejs
themeEmacs
titleJavascript
linenumberstrue
<script>
	$('a#btn-se-init').on('click', function (e) {
    		e.preventDefault();
		window.editor = new SynapEditor('synapEditor', 'config.json');
	});
</script>




HTML
<link href='http://www.synapeditor.com/resource/synapeditor/synapeditor.css' rel='stylesheet' type='text/css'>
<script src='http://www.synapeditor.com/resource/synapeditor/synapeditor.js'></script>
<div style="background-color: #ffffff; width:100%; height:300px;">
        <div id="synapEditor"></div>
</div>
<script>
        
<p>
  <a id="btn-se-init" href="#">에디터 생성</a>
</p>
<script>
$('a#btn-se-init').on('click', function (e) {

		e.preventDefault();
		window.editor = new SynapEditor('synapEditor', 'http://docs.synapeditor.com/download/attachments/329065/config.json?api=v2');
	});
</script>