swapDoc method

void swapDoc(
  1. Doc doc
)

Attach a new document to the editor.

Implementation

void swapDoc(Doc doc) {
  _doc = doc;
  callArg('swapDoc', doc.jsProxy);
}