Page tree

Versions Compared

Key

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

Status
colourYellow
title릴리즈 2.11.0 이상

API를 통한 편집을 위해 APIModel을 반환합니다Returns an APIModel for editing via the API.


Parameters:

Name

Type

Attribute

Description

id

String

optionsObject

{

    skipUndoRedo: false,

    skipRendering: false

}

APIModel의 옵션을 설정합니다

Set options for APIModel.

skipUndoRedo :

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

 If this value is true, the result of editing through the model is not undo/redo. Also the old undo/redo stack is initialized.

skipRendering : If this value is true, the results of editing through the model are reflected only in the model and not rendered on the screen. After all edits are done, you need to render them separately via editor.render() method.


Return:

TypeDescription
Element
편집을 위한
API
모델
model for editing


Example:

Code Block
languagejs
themeEmacs
var table = editor.getAPIModelById('ID');
table.insertCol(1);
table.insertRow(1);
table.setWidth(400);

...