Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Macro name changed from html to html-bobswift during server to cloud migration processing.

Status
colourYellow
title릴리즈 2.6.0 이상

HTML content를 Synap Editor에 HTML을 삽입합니다.
파라메터에 ID가 존재할 경우 ID와 Offset에 해당하는 위치에 삽입됩니다.
ID가 존재하지 않을 경우 현재 Selection을 기준으로 다음 문단에 삽입됩니다.


Parameters:

NameTypeDescription
htmlStringHtml content삽입할 HTML 문자열
idStringParagraph IdHTML을 삽입 할 문단의 ID
offsetNumberHTML을 삽입할 위치 (offset [default = 0])

Status
colourYellow
title릴리즈 2.11.0 이상
 forceRender

Boolean즉시 렌더링할지 여부 (기본값 true)


Example:

Code Block
languagejs
themeEmacs
var html = '<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none" viewBox="0 0 130.67 131.67" style="width: 100%; height: 100%; transform: matrix(1, 0, 0, 1, 0, 0); left: 0px; top: 0px;"><g transform="translate(1.335, 1.335)"><path stroke-width="2.67" d="M 0,64.5 A 64,64.5 0 0,1 64,0 A 64,64.5 0 0,1 128,64.5 A 64,64.5 0 0,1 64,129 A 64,64.5 0 0,1 0,64.5 Z " stroke="rgb(79, 129, 189)" stroke-dasharray="" fill="rgb(247, 150, 70)" vector-effect="non-scaling-stroke"></path></g></svg>';
editor.insertHTML(html);

...

<!-- jQuery --> <script src="https://code.jquery.com/jquery-3.3.1.js"></script>
Code Block
languagejs
themeEmacs
var html = 'html Content';
editor.insertHTML(html, id, offset);
HTML

Demo:

Code Block
languagejs
themeEmacs
// html
<p id='sign'>&nbsp;</p>

// javascript
var html = '<img src='https://synapeditor.com/wp-content/uploads/2019/08/newvalue_01.png' style='width:50px; height:50px;'>';
var paragraphId = 'sign';
editor.insertHTML(html, paragraphId);



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


<!-- 외부code 모듈mirror  -->
<!-- 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%;">
<table data-template-id="2" style="border-collapse: collapse; word-break: break-all; white-space: normal; line-height: normal; width: 850px; vertical-align: text-bottom; border-style: solid; border-width: 1px; border-color: rgb(0, 0, 0); margin-bottom: 15px;">
        <colgroup>
            <col style="width: 91px;">
            <col style="width: 377px;">
        </colgroup>
        <tbody>
            <tr style="height: 25px;">
                <th colspan="2" style="padding: 5px; word-break: break-word; background-color: rgb(240, 239, 239); text-align: center; width: 91px; border-width: 1px; border-style: dashed; border-color: rgb(0, 0, 0);">
                    <button id="ok">승인</button>
                </th>
            </tr>
        </tbody>
    </table>
		<div style="width:850px;height:900px1200px;">
        	<div id="synapEditor"></div>
		</div>
</div>
<script>
		var initHtml ="<div class='se-contents' style='font-family: Arial, Helvetica, sans-serif; font-size: 11pt; line-height: 1.2; padding: 25px 10px 25px 25px;'><p id='sign1'>&nbsp;</p>	<div class='se-div' style='text-align: left; padding: 5px; width: 790px; overflow: auto;'>		<h1 style='overflow-wrap: break-word; text-align: center; margin: 16px 0px; display: block;'>			<span>개 인 지 출 결 의 서</span>		</h1>	</div>	<table data-template-id='1' style='line-height: normal; width: 800px; word-break: break-all; border-collapse: collapse; vertical-align: text-bottom;'>		<colgroup>			<col style='width: 83px;'>			<col style='width: 117px;'>			<col style='width: 87px;'>			<col style='width: 113px;'>			<col style='width: 100px;'>			<col style='width: 100px;'>			<col style='width: 100px;'>			<col style='width: 100px;'>		</colgroup>		<tbody>			<tr>				<td colspan='4' style='text-align: center; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<h3 style='overflow-wrap: break-word; margin: 0px; display: block;'>						<span>(주)사이냅소프트</span>					</h3>				</td>				<td style='text-align: left; padding: 5px; border-color: rgba(255, 255, 255, 0) rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>				<td rowspan='3' style='text-align: center; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>						<span>결제</span>					</p>				</td>				<td style='text-align: center; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>						<span>담당</span>					</p>				</td>				<td style='text-align: center; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>						<span>팀장</span>					</p>				</td>			</tr>			<tr>				<td style='text-align: center; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>						<span>작성일</span>					</p>				</td>				<td id='f_regdate' colspan='3' style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>				<td style='text-align: left; padding: 5px; border-color: rgba(255, 255, 255, 0) rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>				<td rowspan='2' style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>				<td rowspan='2' style='text-align: leftcenter; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='text-align: center; overflow-wrap: break-word; margin: 0px; display: block;' id='sign'>​<><br/></p>				</td>			</tr>			<tr>				<td style='text-align: center; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>						<span>부서</span>					</p>				</td>				<td id='f_dept' style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>				<td style='text-align: center; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>						<span>작성자</span>					</p>				</td>				<td id='f_writer' style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>				<td style='text-align: left; padding: 5px; border-color: rgba(255, 255, 255, 0) rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>			</tr>		</tbody>	</table>	<table class='se-unlock' data-template-id='1' style='line-height: normal; margin-top: 10px; width: 800px; word-break: break-all; border-collapse: collapse; vertical-align: text-bottom;'>		<colgroup>			<col style='width: 73px;'>			<col style='width: 67px;'>			<col style='width: 171px;'>			<col style='width: 160px;'>			<col style='width: 329px;'>		</colgroup>		<tbody>			<tr>				<td colspan='2' class='se-lock' style='background-color: rgb(220, 220, 220); text-align: center; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>						<span>날짜</span>					</p>				</td>				<td class='se-lock' style='background-color: rgb(220, 220, 220); text-align: center; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>						<span>계정명</span>					</p>				</td>				<td class='se-lock' style='background-color: rgb(220, 220, 220); text-align: center; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>						<span>금액</span>					</p>				</td>				<td class='se-lock' style='background-color: rgb(220, 220, 220); text-align: center; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>						<span>사용내역</span>					</p>				</td>			</tr>			<tr>				<td colspan='5' class='se-lock' style='background-color: rgb(220, 220, 220); text-align: center; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>						<span>신용카드 사용분 (연말 소득공제 불가)</span>					</p>				</td>			</tr>			<tr>				<td style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>				<td style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>				<td style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>				<td style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>				<td style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>			</tr>			<tr>				<td style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>				<td style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>				<td style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>				<td style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>				<td style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>			</tr>			<tr>				<td style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>				<td style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>				<td style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>				<td style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>				<td style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>			</tr>			<tr>				<td style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>				<td style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>				<td style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>				<td style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>				<td style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>			</tr>			<tr>				<td style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>				<td style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>				<td style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>				<td style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>				<td style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>			</tr>			<tr>				<td colspan='3' class='se-lock' style='background-color: rgb(239, 239, 239); text-align: center; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>						<span>소계</span>					</p>				</td>				<td colspan='2' data-formula-text='sum(D3:D7)' data-number-format-id='179' data-number-format-code='"₩"&quot;₩&quot;#,##0_);[Red]("₩"&quot;₩&quot;#,##0)' class='se-lock' style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>						<span>₩0</span>					</p>				</td>			</tr>			<tr>				<td colspan='5' class='se-lock' style='background-color: rgb(220, 220, 220); text-align: center; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>						<span>일반 영수증 사용분 (개인 현금영수증 불가)</span>					</p>				</td>			</tr>			<tr>				<td style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>				<td style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>				<td style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>				<td data-number-format-id='179' data-number-format-code='"₩"&quot;₩&quot;#,##0_);[Red]("₩"&quot;₩&quot;#,##0)' style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>				<td style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>			</tr>			<tr>				<td style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>				<td style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>				<td style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>				<td data-number-format-id='179' data-number-format-code='"₩"&quot;₩&quot;#,##0_);[Red]("₩"&quot;₩&quot;#,##0)' style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>				<td style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>			</tr>			<tr>				<td style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>				<td style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>				<td style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>				<td data-number-format-id='179' data-number-format-code='"₩"&quot;₩&quot;#,##0_);[Red]("₩"&quot;₩&quot;#,##0)' style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>				<td style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>			</tr>			<tr>				<td style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>				<td style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>				<td style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>				<td data-number-format-id='179' data-number-format-code='"₩"&quot;₩&quot;#,##0_);[Red]("₩"&quot;₩&quot;#,##0)' style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>				<td style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>			</tr>			<tr>				<td style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>				<td style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>				<td style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>				<td data-number-format-id='179' data-number-format-code='"₩"&quot;₩&quot;#,##0_);[Red]("₩"&quot;₩&quot;#,##0)' style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>				<td style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>			</tr>			<tr>				<td colspan='3' class='se-lock' style='background-color: rgb(239, 239, 239); text-align: center; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>						<span>소계</span>					</p>				</td>				<td colspan='2' data-formula-text='sum(D10:D14)' data-number-format-id='179' data-number-format-code='"₩"&quot;₩&quot;#,##0_);[Red]("₩"&quot;₩&quot;#,##0)' class='se-lock' style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>						<span>₩0</span>					</p>				</td>			</tr>			<tr>				<td colspan='3' class='se-lock' style='background-color: rgb(220, 220, 220); text-align: center; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>						<span>지출총계</span>					</p>				</td>				<td colspan='2' data-formula-text='D8+D15' data-number-format-id='179' data-number-format-code='"₩"&quot;₩&quot;#,##0_);[Red]("₩"&quot;₩&quot;#,##0)' class='se-lock' style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>						<span>₩0</span>					</p>				</td>			</tr>		</tbody>	</table>	<table data-template-id='1' style='line-height: normal; margin-top: 10px; width: 800px; word-break: break-all; border-collapse: collapse; vertical-align: text-bottom;'>		<colgroup>			<col style='width: 158px;'>			<col style='width: 121px;'>			<col style='width: 121px;'>			<col style='width: 400px;'>		</colgroup>		<tbody>			<tr>				<td rowspan='2' style='text-align: center; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>						<span>경영지원팀</span>					</p>				</td>				<td style='text-align: center; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>						<span>담당</span>					</p>				</td>				<td style='text-align: center; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>						<span>팀장</span>					</p>				</td>				<td style='text-align: center; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>						<span>영수</span>					</p>				</td>			</tr>			<tr style='height: 88.1875px;'>				<td style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>				<td style='text-align: left; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>				<td id='f_appdate' style='text-align: center; padding: 5px; border-color: rgb(0, 0, 0); border-style: solid; border-width: 1px; word-break: break-word;'>					<p style='overflow-wrap: break-word; margin: 0px; display: block;'>​<>&#8203;</p>				</td>			</tr>		</tbody>	</table></div>";
		const config = table><p id='sign2'>&nbsp;</p></div>";
		const config = Object.assign(synapEditorConfig, {
			"editor.license":"/se/resource/license.json",
			"editor.menu.show": false,
			"editor.import.maxSize": 10485760,
		    "editor.import.api": "/importDoc",
		    "editor.upload.maxSize": 3145728,
		    "editor.upload.image.api": "/se/uploadFile",
		    "editor.upload.video.api": "/se/uploadFile",
		    "editor.upload.file.api": "/se/uploadFile",
			"editor.initFocus": false
			});
		window.editor = new SynapEditor("synapEditor", config, initHtml);
		document.getElementById('ok').addEventListener('click', function () {
			editor.execCommand('setCaretById', 'sign');
			alert("A"editor.execCommand('extendLineEnd');
			editor.execCommand('deleteLeft');
			editor.innerHTMLinsertHTML("<img src='https://synapeditor.com/wp-content/uploads/2019/08/newvalue_01.png' style='width:50px; height:50px;'>", 'sign');
        });
		document.getElementById('ok1').addEventListener('click', function  try() {
			editor.execCommand('setCaretById', 'sign1');
              window.editor.setTextBySelectors(data);
   			editor.execCommand('extendLineEnd');
			editor.execCommand('deleteLeft');
			editor.insertHTML("<img src='https://synapeditor.com/wp-content/uploads/2019/08/newvalue_01.png' style='width:50px; height:50px;'>", 'sign1');
        } catch (e) {
      );
		document.getElementById('ok2').addEventListener('click', function () {
			editor.insertHTML("<img src='https://synapeditor.com/wp-content/uploads/2019/08/newvalue_01.png' style='width:50px; height:50px;'>", 'sign2');
         console.error(e);
            }
});
		document.getElementById('ok3').addEventListener('click', function () {
			editor.execCommand('setCaretById', 'sign2');
			editor.execCommand('extendLineEnd');
			editor.execCommand('deleteLeft');
			editor.insertHTML("<img src='https://synapeditor.com/wp-content/uploads/2019/08/newvalue_01.png' style='width:50px; height:50px;'>", 'sign2');
        });
</script>