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 = {
|
var trayOptions = {
|
||||||
title: options.title,
|
title: options.title,
|
||||||
width: "inherit",
|
width: options.width||"inherit",
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
id: "node-dialog-cancel",
|
id: "node-dialog-cancel",
|
||||||
|
@ -126,6 +126,7 @@
|
|||||||
var value = that.editor.getValue();
|
var value = that.editor.getValue();
|
||||||
RED.editor.editJavaScript({
|
RED.editor.editJavaScript({
|
||||||
value: value,
|
value: value,
|
||||||
|
width: "Infinity",
|
||||||
cursor: that.editor.getCursorPosition(),
|
cursor: that.editor.getCursorPosition(),
|
||||||
complete: function(v,cursor) {
|
complete: function(v,cursor) {
|
||||||
that.editor.setValue(v, -1);
|
that.editor.setValue(v, -1);
|
||||||
|
Loading…
Reference in New Issue
Block a user