From 6675fdf3c2ca8f3f96dd5af38d64655934f3b3c9 Mon Sep 17 00:00:00 2001 From: Kazuhito Yokoi Date: Mon, 2 Mar 2020 05:50:32 +0000 Subject: [PATCH] Saving the node description property to the library --- .../editor-client/src/js/ui/editor.js | 1 + .../editor-client/src/js/ui/library.js | 21 ++++++++++++------- .../nodes/core/function/10-function.html | 13 ++++++------ 3 files changed, 22 insertions(+), 13 deletions(-) diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/editor.js b/packages/node_modules/@node-red/editor-client/src/js/ui/editor.js index 2f5c4fe11..2c1cbec85 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/editor.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/editor.js @@ -1638,6 +1638,7 @@ RED.editor = (function() { }; editorTabs.addTab(descriptionTab); nodeInfoEditor = buildDescriptionForm(descriptionTab.content,node); + node.nodeInfoEditor = nodeInfoEditor; } var appearanceTab = { diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/library.js b/packages/node_modules/@node-red/editor-client/src/js/ui/library.js index e25223f94..a653c9d7e 100755 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/library.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/library.js @@ -64,12 +64,14 @@ RED.library = (function() { var queryArgs = []; var data = {}; - for (var i=0; i