setHistory method

void setHistory(
  1. JsObject history
)

Replace the editor's undo history with the one provided, which must be a value as returned by getHistory. Note that this will have entirely undefined results if the editor content isn't also the same as it was when getHistory was called.

Implementation

void setHistory(JsObject history) => callArg('setHistory', history);