Status | ||||||
---|---|---|---|---|---|---|
|
...
|
...
|
변경된 DOM을 기준으로 편집모델을 갱신합니다.
화면에 렌더링된 HTML DOM을 편집 후 편집모델에 반영하는데 사용됩니다.
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
var p = document.getElementById('p1'); p.innerText = '텍스트를 변경합니다.'; editor.updateContentsupdateModel('p1'); |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
var p1 = document.getElementById('p1'); p1.id = 'p2'; p2.innerText = '텍스트를 변경합니다.'; editor.updateContentsupdateModel('p1', 'p2'); |