I'm searching for a possibility to edit the code of both sides - left and right - in monaco diff editor.
I've tried already this:
var originalModel = monaco.editor.createModel("heLLo world!", "text/plain");
var modifiedModel = monaco.editor.createModel("hello orlando!", "text/plain");
var diffEditor = monaco.editor.createDiffEditor(
document.getElementById("container"),
{ readOnly: false }
);
diffEditor.setModel({
original: originalModel,
modified: modifiedModel
});
But that (readOnly) option effects just the right side, which is by default editable.
Here is a demo link: creating-the-diffeditor-hello-diff-world