Page tree

Versions Compared

Key

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

...

HTML
<!-- external modules -->
<script type="text/javascript" src='/se/resource/synapeditor/externals/formulaParser/formula-parser.min.js'></script>
<script type="text/javascript" src='/se/resource/synapeditor/externals/SEDocModelParser/SEDocModelParser.min.js'></script>
<script type="text/javascript" src='/se/resource/synapeditor/externals/SEShapeManager/SEShapeManager.min.js'></script>
<script type="text/javascript" src='/se/resource/synapeditor/externals/codeMirror/codemirror.min.js'></script>
<script type="text/javascript" src="/se/resource/synapeditor/externals/codeMirror/xml.min.js"></script>
<link rel='stylesheet' href='/se/resource/synapeditor/externals/codeMirror/codemirror.min.css'>

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

<!-- plugins -->
<script src="/se/resource/synapeditor/plugins/mathType/wirisplugin-generic.js"></script>
<script src="/se/resource/synapeditor/plugins/mathType/mathType.min.js"></script>
<script src="/se/resource/synapeditor/plugins/webSpellChecker/webSpellChecker.min.js"></script>
<link rel='stylesheet' href="/se/resource/synapeditor/plugins/webSpellChecker/webSpellChecker.min.css" type='text/css'>
<script src="/se/resource/synapeditor/plugins/aiWriteSupporter/aiWriteSupporter.min.js"></script>
<link rel="stylesheet" href="/se/resource/synapeditor/plugins/aiWriteSupporter/aiWriteSupporter.min.css">
<script src="/se/resource/synapeditor/plugins/ocr/ocr.min.js"></script>
<link rel="stylesheet" href="/se/resource/synapeditor/plugins/ocr/ocr.min.css">

<div style="background-color: #ffffff; width:99%; height:600px;">
	<div id="synapEditor"></div>
</div>
<script>
window.onload = function () {
	synapEditorConfig['editor.mode.sticky'] = false; // 2019. 05. 07 jy 추가
	synapEditorConfig['editor.toolbar'] = [
		'new', 'open', 'template', 'layout', 'autoSave', '|',
		'print', 'pageBreak', 'contentsProperties', '|',
		'undo', 'redo', '|',
		'copy', 'cut', 'paste', '|',
		'copyRunStyle', 'pasteRunStyle', '|',
		'ruler', 'guide', 'source', 'preview', 'fullScreen', '|',
		'webSpellChecker', 'WebAccessibilityChecker', 'personalDataProtection', 'find', 'conversion', '|',
		'help', 'about', '-',
		'bulletList', 'numberedList', 'multiLevelList', '|',
		'alignLeft', 'alignCenter', 'alignRight', 'alignJustify', '|',
		'decreaseIndent', 'increaseIndent', '|',
		'paragraphProperties', '|',
		'link', 'unlink', 'bookmark', '|',
        'ocr', 'openAIInteraction', '|',
		'image', 'background', 'video', 'file', '|',
		'mathType.math', 'mathType.chem', '|',
		'table', 'div', 'drawAbsolutePositionDiv', 'horizontalLine', 'quote', '|', 'selectionMode', 'shapeEditor',
		'specialCharacter', 'emoji', '-',
		'paragraphStyleWithText', '|',
		'fontFamilyWithText', '|',
		'fontSizeWithText', '|',
		'lineHeightWithText', '|',
		'bold', 'italic', 'underline', 'strike', '|',
		'growFont', 'shrinkFont', '|',
		'fontColor', 'fontBackgroundColor', '|',
		'superScript', 'subScript', '|',
		'customRunStyle', 'removeRunStyle', '|',
		'customParagraphStyle', '|',
		'responsive'
	];
    synapEditorConfig['ocr.config'] = {
        'url': '/se/ocr'
    };
    synapEditorConfig['aiWriteSupporter.config'] = {
        'url': '/se/requestGPT',
        'ocrUrl': '/se/ocr'
    };
    // 체험판 ~  April 26, 2023 – May 10, 2023
    synapEditorConfig['webSpellChecker.config'] = {
        'url': 'https://svc.webspellchecker.net/api',
        'customerid': 'BwkpONxqkVeVHli',
        'defaultLanguage': 'ko_KR'
    },
	window.editor = new SynapEditor('synapEditor', synapEditorConfig);
}
</script>

...