Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

릴리즈 2.11.0 이상

.se-contents DOM을 기준으로 편집모델을 갱신합니다.


Parameters:

Name

Type

Attribute

Description

optionsObject

{

    skipUndoRedo: false,

    skipRendering: false

}

APIModel의 옵션을 설정합니다.

skipUndoRedo : 이 값이 true이면 해당 모델을 통한 편집 결과는 undo/redo가 되지 않습니다. 또한 이전 undo/redo stack도 초기화됩니다.

skipRendering : 이 값이 true이면 해당 모델을 통한 편집 결과는 모델에만 반영이되고 화면에 렌더링 되지 않습니다.  모든 편집이 완료된 후 editor.render() 메소드를 통해 별도로 렌더링해야 합니다.


Example:

var paragraphs = document.querySelectorAll('.se-contents p');
paragraphs.forEach(function(para, index){ para.innerText = index + 'test'; });
editor.updateBodyModel();
  • No labels