window.editor.getValue(); // Monaco Editor get contents window.editor.setValue("Hey"); // Monaco Editor set contents