...
에디터에 컨텐츠가 있을 때는 보여지지 않습니다.
Placeholder를 체험해보세요!
체험하기
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.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 type="text/javascript" src='/se/resource/synapeditor/plugins/placeholder/placeholder.min.js'></script> <style type="text/css"> .se-contents p { margin: 16px 0px; } .se-text-body p { margin: 0px; } </style> <div style="background-color: #ffffff; width:99%; height:500px;"> <div id="synapEditor"></div> </div> <script> const config = Object.assign(synapEditorConfig, { "editor.license":"/se/resource/license.json", "editor.toolbar": [ "new","|", "shapeEditor" ], 'placeholder.config': { 'html': <div class="se-drawing-object-wrapper se-shape" style="vertical-align: baseline; text-indent: 0px; top: 25.5px; left: 696px; width: 248px; height: 197px; display: inline-block; position: absolute; z-index: 251659264;" data-adj-value="16667" data-fill-color="#ffe9bf" data-flip-h="false" data-flip-v="false" data-height="197" data-rotate="0" data-shape-type="foldedCorner" data-stroke-fill-color="#3c3c3c" data-stroke-style="solid" data-stroke-width="2" data-width="248"> <svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none" viewBox="0 0 248 197" data-strokesize="2" style="width: 248px; height: 197px; transform: matrix(1, 0, 0, 1, 0, 0); overflow: visible; left: 0px; top: 0px; position: absolute;"><g><path d="M 0,0 L 248,0 L 248,164.17 L 215.17,197 L 0,197 Z " stroke="transparent" stroke-dasharray="none" fill="rgb(255, 233, 191)" vector-effect="non-scaling-stroke"> </path><path d="M 215.17,197 L 221.73,170.73 L 248,164.17 Z " stroke="transparent" stroke-dasharray="none" fill="rgb(232, 211, 173)" vector-effect="non-scaling-stroke"></path><path stroke-width="2" d="M 215.17,197 L 221.73,170.73 L 248,164.17 L 215.17,197 L 0,197 L 0,0 L 248,0 L 248,164.17 " stroke="rgb(60, 60, 60)" stroke-dasharray="none" fill="transparent" vector-effect="non-scaling-stroke"></path></g></svg> <div class="se-text-body-wrapper" style="margin: 10px; top: 0px; left: 0px; width: 228px; height: 144.17px; position: absolute; overflow: visible; z-index: 251659264;"> <div class="se-text-body-area" style="position: relative; display: table; width: 100%; height: 100%; word-break: break-all; top: 0px;"> <div class="se-text-body" style="text-align: center; vertical-align: middle; display: table-cell; position: relative;"> <p style="margin: 0px; display: block; overflow-wrap: break-word;"><span>Placeholder는 </span><span>에디터에 '<p>에디터에 컨텐츠가 없을 때 보여질 HTML을 설정할 수 있는 플러그인입니다.</span></p> </div> </div> </div> </div>p>' }, "editor.menu.show": false }); window.editor = new SynapEditor("synapEditor", config, document.getElementById('synapEditor').innerHTML); </script> |
...