mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Add setReadOnly support
This commit is contained in:
@@ -990,6 +990,10 @@ RED.editor.codeEditor.monaco = (function() {
|
||||
_executeEdits(this,[op]);
|
||||
}
|
||||
|
||||
ed.setReadOnly = function setReadOnly(readOnly) {
|
||||
ed.updateOptions({ readOnly: readOnly })
|
||||
}
|
||||
|
||||
ed.session.replace = function replace(range, text) {
|
||||
var op = { range: range, text: text, forceMoveMarkers: true };
|
||||
_executeEdits(this,[op]);
|
||||
|
Reference in New Issue
Block a user