...
| Note |
|---|
컨텐츠 내 목차 요소와 목차 모델의 ID를 동기화하려면 updateTableOfContentsIds를 호출해야 합니다. ex) editor.updateTableOfContentsIds(); |
| Info |
|---|
'editor.titleStyle' config 설정 시 특정 class를 가진 요소를 목차로 추출 가능합니다. 자세한 내용 보기: 목차 클래스 설정 |
Example:
| Code Block | ||||
|---|---|---|---|---|
| ||||
// model 불러오기 var model = editor.getTableOfContentsModelJSON(); var model = editor.getTableOfContentsModelJSON(true); // 컨텐츠 내 목차 요소와 목차 모델의 ID를 동기화 editor.getTableOfContentsModelJSON(); editor.updateTableOfContentsIds(); |
...
