...
HTML |
---|
<!-- jQuery --> <script src="https://code.jquery.com/jquery-3.3.1.js"></script> <!-- code mirror --> <script type="text/javascript" src='http://www.synapeditor.com/resource/synapeditor/externals/codemirror/codemirror.min.js'></script> <script type="text/javascript" src="http://www.synapeditor.com/resource/synapeditor/externals/codemirror/xml.min.js"></script> <link rel='stylesheet' href='http://www.synapeditor.com/resource/synapeditor/externals/codemirror/codemirror.min.css'> <!-- formular parser --> <script type="text/javascript" src='http://www.synapeditor.com/resource/synapeditor/externals/formula-parser/formula-parser.min.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'> <!-- tui Image Editor --> <script type="text/javascript" src='http://www.synapeditor.com/resource/synapeditor/plugins/tuiImageEditor/tuiImageEditor.min.js'></script> <link rel='stylesheet' href='http://www.synapeditor.com/resource/synapeditor/plugins/tuiImageEditor/tuiImageEditor.min.css'> <!-- formula-parser --> <script type="text/javascript" src='http://www.synapeditor.com/resource/synapeditor/2.4.0/formula-parser.min.js'></script> <div style="background-color: #ffffff; width:99%; height:500px;"> <div id="synapEditor"> <div class="se-contents" style="padding:25px;"> <table data-template-id="1" style="width: 540px; height: 270.406px;> <colgroup> <col style="width: 135px;"> <col style="width: 135px;"> <col style="width: 135px;"> <col style="width: 135px;"> </colgroup> <tbody> <tr style="height: 135.203px;"> <td style="padding: 5px; border-width: 1px; border-style: solid; border-color: rgb(0, 0, 0);"> <p style="margin: 0px;"> <span>1</span> </p> </td> <td style="padding: 5px; border-width: 1px; border-style: solid; border-color: rgb(0, 0, 0);"> <p style="margin: 0px;"> <span>2</span> </p> </td> <td style="padding: 5px; border-width: 1px; border-style: solid; border-color: rgb(0, 0, 0);"> <p style="margin: 0px;"> <span>3</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>6</span> </p> </td> </tr> <tr style="height: 135.203px;"> <td style="padding: 5px; border-width: 1px; border-style: solid; border-color: rgb(0, 0, 0);"> <p style="margin: 0px;"> <span>1</span> </p> </td> <td style="padding: 5px; border-width: 1px; border-style: solid; border-color: rgb(0, 0, 0);"> <p style="margin: 0px;"> <span>2</span> </p> </td> <td style="padding: 5px; border-width: 1px; border-style: solid; border-color: rgb(0, 0, 0);"> <p style="margin: 0px;"> <span>3</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>3</span> </p> </td> </tr> </tbody> </table> </div> </div> </div> <script> window.editor = new SynapEditor("synapEditor", { "editor.license":"/resource/license.json", "editor.toolbar": ["new","table"], "editor.menu.show": false, "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> |
...