...
remove()
Element 자신을 제거합니다.
| Status |
|---|
| subtle | true |
|---|
| colour | Red |
|---|
| title | 모든 Element를 제거할 경우 이후의 작업에서 오류가 발생할 수 있습니다. |
|---|
|
| Code Block |
|---|
|
var container = editor.getAPIModelById('id');
container.remove(); |
...
- html <String> 교체할 HTML String.
Element 자신을 파라메터로 인자로 넘겨받은 HTML String으로 교체합니다.
| Code Block |
|---|
|
var container = editor.getAPIModelById('id');
container.replace('<p><span>Paragraph<span>HTMLContainer replaced</span></p>span>'); |
setHeight(value[, unit = 'px'])
- value<Number> 설정의 표의 높이값
- unit <String> 높이값의 단위 ('px', '%'). 기본값 'px'.
표의 HTML Container의 높이를 설정합니다.
| Code Block |
|---|
|
var container = editor.getAPIModelById('id');
container.setHeight(200);
container.setHeight(200, 'px'); |
setWidth(value[, unit = 'px'])
- value<Number> 설정의 표의 너비값
- unit <String> 너비값의 단위 ('px', '%'). 기본값 'px'.
표의 HTML Container의 너비를 설정합니다.
| Code Block |
|---|
|
var container = editor.getAPIModelById('id');
container.setWidth(400);
container.setWidth(100, '%'); |
...