From 2ac9c11ec9a162c1a0d2d38aa74cc3951b6de3c1 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Sun, 16 Apr 2017 21:08:32 +0100 Subject: [PATCH] Add tip to tab description editor (and remove icons) --- editor/js/ui/workspaces.js | 8 +++++--- red/api/locales/en-US/editor.json | 3 ++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/editor/js/ui/workspaces.js b/editor/js/ui/workspaces.js index 0202b6edd..814fae98b 100644 --- a/editor/js/ui/workspaces.js +++ b/editor/js/ui/workspaces.js @@ -136,7 +136,7 @@ RED.workspaces = (function() { height -= $(rows[i]).outerHeight(true); } height -= (parseInt($("#dialog-form").css("marginTop"))+parseInt($("#dialog-form").css("marginBottom"))); - height -= 20; + height -= 28; $(".node-text-editor").css("height",height+"px"); tabflowEditor.resize(); }, @@ -149,13 +149,13 @@ RED.workspaces = (function() { '').appendTo(dialogForm); $('
'+ - ''+ + ''+ ' '+ ''+ '
').appendTo(dialogForm); $('
'+ - ''+ + ''+ '
'+ '
').appendTo(dialogForm); tabflowEditor = RED.editor.createEditor({ @@ -164,6 +164,8 @@ RED.workspaces = (function() { value: "" }); + $('
').appendTo(dialogForm); + dialogForm.find('#node-input-disabled-btn').on("click",function(e) { var i = $(this).find("i"); if (i.hasClass('fa-toggle-off')) { diff --git a/red/api/locales/en-US/editor.json b/red/api/locales/en-US/editor.json index 25eda58ed..d178e7c19 100644 --- a/red/api/locales/en-US/editor.json +++ b/red/api/locales/en-US/editor.json @@ -22,7 +22,8 @@ "status": "Status", "enabled": "Enabled", "disabled":"Disabled", - "info": "Information, in markdown format" + "info": "Description", + "tip": "Description will accept Markdown and will appear in the Info tab." }, "menu": { "label": {