Skip to content

Commit

Permalink
Clean up Orion fixes - (still not quite working fully)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Conway-Jones committed Jul 21, 2015
1 parent 30539c2 commit 3515db5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
13 changes: 10 additions & 3 deletions editor/js/ui/library.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,10 +223,17 @@ RED.library = (function() {
RED.editor.createEditor({
id: 'node-select-library-text'
}, function(editorView) {
if (options.mode) {
var contents = editorView.editor.getText();
editorView.setContents(contents, options.mode);
}
editorView.editor.getTextView().setOptions({themeClass: "editorTheme"});
editorView.editor.getTextView().setOptions({showLinesRuler: false});
editorView.editor.getTextView().setOptions({showAnnotationRuler: false});
editorView.editor.getTextView().setOptions({showOverviewRuler: false});
editorView.editor.getTextView().setOptions({showFoldingRuler: false});
editorView.editor.getTextView().setOptions({readonly: true});
libraryEditor = editorView.editor;
//editorView.setContents(contents, 'application/javascript');
//libraryEditor.setText('node-select-library-text');
libraryEditor.getTextView().setOptions({themeClass: "editorTheme"});
libraryEditor.focus();
});

Expand Down
1 change: 1 addition & 0 deletions nodes/core/core/80-function.html
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ <h4>Sending messages</h4>
type:"function", // the type of object the library is for
editor:that.editorView.editor, // the field name the main text body goes to
//mode:"ace/mode/javascript",
mode:"application/javascript",
fields:['name','outputs']
});
var contents = $("#node-input-func").val();
Expand Down
2 changes: 1 addition & 1 deletion nodes/core/core/80-template.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
cType = "text/html";
}
return cType;
};
}
RED.editor.createEditor({
id: 'node-input-template-editor'
}, function(editorView) {
Expand Down

0 comments on commit 3515db5

Please sign in to comment.