-
Notifications
You must be signed in to change notification settings - Fork 73
DiffEditor
Jan Richter edited this page Jun 2, 2020
·
5 revisions
// through editors view
const diffEditor1 = await new EditorView().openEditor('editorTitle');
// directly
const diffEditor2 = new DiffEditor();
Since diff editor is basicaly two text editors in one, the DiffEditor
object gives you the ability to work with two editors:
// get the original editor
const original = await diffEditor1.getOriginalEditor();
// get the modified editor
const changed = await diffEditor1.getModifiedEditor();