Skip to content

Cm5Editor.swapDoc method

Cm5Editor › swapDoc

Unofficial

Attaches a new document to the editor.

Signature:

swapDoc(doc: Doc): Doc

Parameters:

Parameter Type Description
doc Doc The new document.

Returns: DocThe old document.