HTML content를 Synap Editor에 삽입합니다.
Parameters:
Name | Type | Description |
---|---|---|
html | String | Html content |
Example:
var html = "<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none" viewBox="0 0 114.67 114.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 d="M 0,28 L 84,28 L 84,112 L 0,112 Z " stroke="none" stroke-dasharray="undefined" fill="rgb(155, 187, 89)" vector-effect="non-scaling-stroke"></path><path d="M 84,28 L 112,0 L 112,84 L 84,112 Z " stroke="none" stroke-dasharray="undefined" fill="rgb(155, 187, 89)" vector-effect="non-scaling-stroke"></path><path d="M 0,28 L 28,0 L 112,0 L 84,28 Z " stroke="none" stroke-dasharray="undefined" fill="rgb(155, 187, 89)" vector-effect="non-scaling-stroke"></path><path stroke-width="2.67" d="M 0,28 L 28,0 L 112,0 L 112,84 L 84,112 L 0,112 Z M 0,28 L 84,28 L 112,0 M 84,28 L 84,112 " stroke="rgb(255, 255, 0)" stroke-dasharray="" fill="none" vector-effect="non-scaling-stroke"></path></g></svg>"; editor.insertHTML(html);