mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Show print margin on ace editor
This commit is contained in:
parent
1b2e442513
commit
42c6487ff3
@ -2425,7 +2425,6 @@ RED.editor = (function() {
|
|||||||
el = $("<div>").appendTo(el).addClass("red-ui-editor-text-container")[0];
|
el = $("<div>").appendTo(el).addClass("red-ui-editor-text-container")[0];
|
||||||
var editor = ace.edit(el);
|
var editor = ace.edit(el);
|
||||||
editor.setTheme("ace/theme/tomorrow");
|
editor.setTheme("ace/theme/tomorrow");
|
||||||
editor.setShowPrintMargin(false);
|
|
||||||
var session = editor.getSession();
|
var session = editor.getSession();
|
||||||
session.on("changeAnnotation", function () {
|
session.on("changeAnnotation", function () {
|
||||||
var annotations = session.getAnnotations() || [];
|
var annotations = session.getAnnotations() || [];
|
||||||
|
@ -243,7 +243,6 @@ RED.library = (function() {
|
|||||||
useWorker: false
|
useWorker: false
|
||||||
});
|
});
|
||||||
libraryEditor.setTheme("ace/theme/tomorrow");
|
libraryEditor.setTheme("ace/theme/tomorrow");
|
||||||
libraryEditor.setShowPrintMargin(false);
|
|
||||||
if (options.mode) {
|
if (options.mode) {
|
||||||
libraryEditor.getSession().setMode(options.mode);
|
libraryEditor.getSession().setMode(options.mode);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user