Status | ||||||
---|---|---|---|---|---|---|
|
...
|
Selection을 기준으로 HTML Element 배열을 반환합니다. Selection이 지정되지 않은 경우 현재 Selection에 해당하는 HTML Element를 현재 에디터의 Body모델을 JSON Object 또는 JSON String으로 반환합니다.
Parameters:
Name | Type | Attribute | Description |
---|---|---|---|
toString | boolean | default : false |
현재 에디터 Body 모델을 JSON String으로 반환 받을지 설정합니다. |
Return:
Type | Description |
---|---|
Object | String | toString에 따른 Body 모델 JSON Object 또는 JSON String. |
Example:
Code Block | ||||
---|---|---|---|---|
| ||||
var model = editor.getBodyModelJSON(); var model = editor.getBodyModelJSON(true); |
...