...
HTML |
---|
<!-- jQuery -->
<script src="https://code.jquery.com/jquery-3.3.1.js"></script>
<!-- Synap Editor -->
<script src='http://www.synapeditor.com/resource/synapeditor.config.js'></script>
<script src='http://www.synapeditor.com/resource/synapeditor/synapeditor.min.js'></script>
<link href='http://www.synapeditor.com/resource/synapeditor/synapeditor.min.css' rel='stylesheet' type='text/css'>
<div style="background-color: #ffffff; width:99%; height:500px;">
<div id="synapEditor">
<table data-template-id="1" style="width: 540px;">
<colgroup>
<col style="width: 135px;">
<col style="width: 135px;">
<col style="width: 135px;">
<col style="width: 135px;">
</colgroup>
<tbody>
<tr>
<td style="padding: 5px; border-width: 1px; border-style: solid; border-color: rgb(0, 0, 0);">
<p style="margin: 0px;">
<span>1200</span>
</p>
</td>
<td style="padding: 5px; border-width: 1px; border-style: solid; border-color: rgb(0, 0, 0);">
<p style="margin: 0px;">
<span>2500</span>
</p>
</td>
<td style="padding: 5px; border-width: 1px; border-style: solid; border-color: rgb(0, 0, 0);">
<p style="margin: 0px;">
<span>3200</span>
</p>
</td>
<td data-formula-text="sum(a1:c1)" style="padding: 5px; border-width: 1px; border-style: solid; border-color: rgb(0, 0, 0);">
<p style="margin: 0px;">
<span>640</span>
</p>
</td>
</tr>
<tr>
<td style="padding: 5px; border-width: 1px; border-style: solid; border-color: rgb(0, 0, 0);">
<p style="margin: 0px;">
<span>124200</span>
</p>
</td>
<td style="padding: 5px; border-width: 1px; border-style: solid; border-color: rgb(0, 0, 0);">
<p style="margin: 0px;">
<span>23120</span>
</p>
</td>
<td style="padding: 5px; border-width: 1px; border-style: solid; border-color: rgb(0, 0, 0);">
<p style="margin: 0px;">
<span>3900</span>
</p>
</td>
<td data-formula-text="max(a2:c2)" style="padding: 5px; border-width: 1px; border-style: solid; border-color: rgb(0, 0, 0);">
<p style="margin: 0px;">
<span>38214</span>
</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<script>
window.editor = new SynapEditor("synapEditor", {
"editor.license":"/resource/license.json",
"editor.toolbar": ["new","table", "numberFormat"],
"editor.menu.list": ["table"],
"editor.menu.show": true,
"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"
}, document.getElementById('synapEditor').innerHTML);
</script> |
...