Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
themeEmacs
titleIf the ID has not changed
var p = document.getElementById('p1');
p.innerText = '텍스트를Change the 변경합니다text.';
editor.updateModel('p1');

...

Code Block
languagejs
themeEmacs
titleIf the ID has changed
var p1 = document.getElementById('p1');
p1.id = 'p2';
p2.innerText = '텍스트를Change the 변경합니다text.';
editor.updateModel('p1', 'p2');

...