...
| Status | ||||||
|---|---|---|---|---|---|---|
|
| Code Block | ||||
|---|---|---|---|---|
| ||||
var legend = editor.getAPIModelById('id');
legend.remove(); |
...
- html <String> 교체할 HTML String.
Element 자신을 파라메터로 인자로 넘겨받은 HTML String으로 교체합니다.
| Code Block | ||||
|---|---|---|---|---|
| ||||
var legend = editor.getAPIModelById('id');
legend.replace('<p><span>Legend<span>Legend replaced</span></p>span>'); |