Page tree

Versions Compared

Key

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

...

Code Block
languagejs
themeEmacs
linenumberstrue
<script>
		var changedMessages = {
			'message.label.bold': '★두껍게★', // 굵게 -> ★두껍게★
			'message.label.italic': '♧이탤릭♧' // 기울임꼴 -> ♧이탤릭♧
		};
		SynapEditor.addMessages('ko', changedMessages);  // 기본 메세지 변경하기
 
		window.editor = new SynapEditor('synapEditor', synapEditorConfig);  // 설정 이후 사이냅에디터를 생성
</script>


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


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


<!-- 외부 모듈  -->
<!-- code mirror -->
<script type="text/javascript" src='https://synapeditor.com/se/resource/synapeditor/externals/codeMirror/codemirror.min.js'></script>
<script type="text/javascript" src="https://synapeditor.com/se/resource/synapeditor/externals/codeMirror/xml.min.js"></script>
<link rel='stylesheet' href='https://synapeditor.com/se/resource/synapeditor/externals/codeMirror/codemirror.min.css'>
<script type="text/javascript" src='https://synapeditor.com/se/resource/synapeditor/externals/formulaParser/formula-parser.min.js'></script>

<div style="background-color: #ffffff; width:99%; height:300px;">
        <div id="synapEditor"></div>
</div>
<script>
		var changedMessages = {
			'message.label.bold': '★두껍게★', // 굵게 -> ★두껍게★
			'message.label.italic': '♧이탤릭♧' // 기울임꼴 -> ♧이탤릭♧
		};
		SynapEditor.addMessages('ko', changedMessages);  // 기본 메세지 변경하기
		synapEditorConfig['editor.toolbar'] = ['bold', 'italic', 'underline', 'strike'];
		window.editor = new SynapEditor("synapEditor", synapEditorConfig, '');
</script>

...