mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Set the JavaScript editor to full-screen
This commit is contained in:
parent
f29d7c9252
commit
6442bb8a13
@ -32,7 +32,7 @@ RED.editor.types._js = (function() {
|
||||
|
||||
var trayOptions = {
|
||||
title: options.title,
|
||||
width: "inherit",
|
||||
width: options.width||"inherit",
|
||||
buttons: [
|
||||
{
|
||||
id: "node-dialog-cancel",
|
||||
|
@ -126,6 +126,7 @@
|
||||
var value = that.editor.getValue();
|
||||
RED.editor.editJavaScript({
|
||||
value: value,
|
||||
width: "Infinity",
|
||||
cursor: that.editor.getCursorPosition(),
|
||||
complete: function(v,cursor) {
|
||||
that.editor.setValue(v, -1);
|
||||
|
Loading…
Reference in New Issue
Block a user